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
Get Started with Redwood for Oracle Cloud HCM   Begin Now

To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered.
For more information, please refer to this announcement explaining best practices for getting answers to questions.

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!