Skip to main content

I have a custom event that will send an email to the help desk when a new employee is created by the HR team. In the email I want to include the Employee name, Person ID, and Department Name (Org Name). 

t

The DEPT_NAME custom attribute will not populate with any value. It is written as follows: 

COMPANY_ORG_API.Get_Org_Name(&NEW:COMPANY, COMPANY_PERS_ASSIGN_API.Get_Org_Code(&NEW:COMPANY,&NEW:EMPLOYEE_ID,COMPANY_PERS_ASSIGN_API.Get_Pos_Code(&NEW:COMPANY,&NEW:EMPLOYEE_ID,SYSDATE)))

 

Any guidance would be greatly appreciated. 

 

Thanks


luke

looks like an issue with the timing of the event.

 

it runs when the company person lu has a new entry but the org name is coming from the company_pers_assign.

 

so when firing the data is not there for it to be collected. 

 

might be worth breaking your attribute down a little to see if it pulls the data of just the org name first 

try this 

IFSAPP.COMPANY_ORG_API.GET_ORG_NAME(&NEW:COMPANY_ID, &NEW:ORG_CODE).

 

i have the same issue with employee job titles when the employee is a future starter