Workday integration issue - not creating HR profiles immediately after creating a user record

prathyusha_snow
Tera Contributor

We are trying to use HR workday integration for retrieving active, terminated and future workers, but the integration is creating a user profile and not the HR profile until the start date of the future employee. We do not desire that to happen, instead it should immediately create a hr profile once the user record is created. I tried changing the logic in both workday_worker_retriever and future_retriever scripts and nothing seems to create the HR profile for the future users. Please let me know where in the script the logic has to   be changed exactly. Can some one please quickly share your ideas. It is a little urgent. Any help is greatly appreciated.ctomasi

3 REPLIES 3

Kiel Sanders
ServiceNow Employee
ServiceNow Employee

Hi Prathyusha



You'll want to review the logic in the shouldSkipTransform() method in the workday_worker_retriever and workday_future_retriever script includes.   If the conditions here return true, it will skip the transform of the HR Profile and continue with the creation of the sys_user record.   This sounds like the behavior you are seeing so you'll want to start there.



Kiel


Kiel,



Thank you for a very quick response. I actually commented out everything in the skipTransform function in both worker retriever and the future retriever to see if the job could be accomplished. The commented part is as below.



find_real_file.png


Because I did not get it working this way, I had to write a business rule as a work around to create a profile for the user. I know this is not a perfect way of achieving this but I could not think of anything else.  


HI kiel.



We are having similar issue for future employees not getting created hr profiles but creating user records, and it is not happening to all.


I checked the logs and got stuck at 'process type' condition in transform map script.



if process type = current, its going toward worker retriever script include which is skipping hr profile creation for future employees.



Could you please help me to find where does process type information exist. does this comes from workday?.


find_real_file.png


kielsanders