Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Next Gen HRHD Custom Field Default

Hi,

Has anyone managed to get default expressions working for custom fields in Next Gen HRHD? I've attempted to use the following expression in a custom field of mine, to return the Primary Contact's person number, but it's not working. It's a text field, but I've also tried using a formula field which also didn't work. It's returning the word 'true' instead of populating the field with the person number.


Any advice would be much appreciated!


Field API name: CustomEmployeePersonNumberText_c


Default Value Expression:

def personnumbervalue = hcmPersonList?.first()?.PersonNumber;

setAttribute('CustomEmployeePersonNumberText_c',personnumbervalue);

return true;


Thanks,

-Edward

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!