cancel
Showing results for 
Search instead for 
Did you mean: 

Auto populate payroll ID field in compensation information not working

S0023625917
Discoverer
0 Kudos
421

Hi,

im trying to hire an employee and i want to auto populate the payroll ID with the employee number value. but upon submitting the hire action it is not working see details below. I hope someone can help me. Thank you.

Compensation portlet

base object: Employee Information Model

Event Type: onsave

field that I want to auto populate : payroll-id

rule created

Accepted Solutions (0)

Answers (1)

Answers (1)

karenperez
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear margiepineda,

You are trying to copy the User ID before it gets saved in the system, this is why your rule will not work. If your user ID is the same as the Personal External ID and this one is generated based on a sequence, then the below example rule can work.

The rule is set onSave to the compInfo portlet and checks what is the next available number from the personal external id sequence without consuming it, so it is the best that can be done for this case and I saw other customers using it already.

I hope this helps!

Thank you.

Best Regards,

Karen Perez