Map User Name from User to HR Profile using Transform Map After Script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 06:26 AM
When a team member is first hired, but before they start, they are entered into a system (PageUp) and that information is sent through a job that allows them to be created in our Active Directory system. The name that is put in that system does not always match the name that is (eventually) used in the MyHR (UltiPro) system that gets updated the day before they are hired. (This is because they are allowed Preferred Names in MyHR or are added with a Preferred Name in Active Directory that later gets changed to their legal name.)
So, basically, I end up with two User Names. On the IT Side, I get the User Name in the User Record from Active Directory through LDAP a few days or weeks before I will get a User Name from the HR side for the HR Profile.
For the HR Profile, I am using a transform map to bring in several fields from UltiPro that are specific to the HR Profile and not appropriate for the User Record (marital status, PTO balance, performance review date, etc...). This works great until I get to the User Name. On the HR Profile, we have the User Name pulled in as a Reference field from the User Record and decided not to use the User Name that could come in from UltiPro. Once that is populated, the fields that we want from the User Record to display on the HR Profile also populated.
From what I can tell, the common denominator between the two records is the employee_number. We are populating the same number to both the User Record and the HR Profile. So, what I'm looking for is a way to pull the User Name into the HR Profile (from the User Record) after the Transform Map pulls in the HR Data so the employee_number is available on both records. Is that an After Transform Script on the Transform Map I'm using to pull in the HR Profile data? Any help on how would I write it?
Thanks,
Richelle
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 05:31 PM
Hi Richelle,
This post is more than a year now. Are you able to share what you did eventually?
Thank you.