Auto Create new hire When a lifecycle is initiated from a record producer

mlamin
Giga Guru

Hello, I am currently working within my personal dev instance creating an onboarding lifecycle event. I have my new record producer created. I have created an HR service linked to my record producer to initiate my lifecycle event. When I run a test and submit the form, an HR case gets created, but a new hire profile is not created. I would like a new hire profile to automatically be created with the information from my record producer. Please advise how I can get that done. Thanks!

1 ACCEPTED SOLUTION

@mlamin The HR Service is called out in the script include, so there will be more updates if you are not using the OOtB Onboarding HR Service.

 

michaelj_sherid_0-1691421270176.png

I recommend going through this code as well so that you can understand how to accommodate for your use case.


Regards,

Mike

View solution in original post

3 REPLIES 3

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi @mlamin If you look at the OotB Activities you will see an "Account Notification" Activity. This activity calls to the Account Notification configuration in Workflow Editor. This will give a good insight as to what you have to do in order to have the user/HR Profile record created.  Here is a image of what that flow looks like. 

 

michaelj_sherid_0-1691418823774.png

Regards,

Mike

Thank you for the response I have reviewed the Account Notification Activity and have it added to my Lifecycle event. Please advised if it is added incorrectly. I have it added as a fulfiller to HR service which should initiate the process of creating the new user. It seems that instead of using the new user information to created the profile it is instead using the Submitter information. I have attached photos with my configurations. I am also referencing this https://www.servicenow.com/community/developer-forum/hrsd-hr-profile-not-auto-create-when-trying-to-...
Similar Issue as mine.

@mlamin The HR Service is called out in the script include, so there will be more updates if you are not using the OOtB Onboarding HR Service.

 

michaelj_sherid_0-1691421270176.png

I recommend going through this code as well so that you can understand how to accommodate for your use case.


Regards,

Mike