How to add automated HR Case under Lifecycle event

Ram33843094
Tera Contributor

1.ADP sends new Employee data to NOW that will create an HR Case [ This is automated, using transform script].

2.Once the HR Case is generated, HR Task for the Hiring Manager will be generated. [Using lifecycle event workflow]

 

Can someone explain how can we add 1st point  lifecycle event, (as it is automated.) , so that I can add rest of the hr tasks as an activities to that LE.

 

 

@Ankur Bawiskar @Susan Britt @Community Alums @Allen Andreas

3 REPLIES 3

Community Alums
Not applicable

Hi @Ram33843094 ,

To meet your requirement, you can go ahead and check how the activity " Account Notification" has been configured.

All the defined activities (activity sets) are calling from set of script includes (ex: "hr_ActivitySet") and these script includes are called from workflow which is triggering when we request a HR Service.  



Script Includes:

 

SandeepDutta_0-1681213550893.png

 



Workflows: HR Activity Launcher and HR Activity Set Launcher

 

SandeepDutta_1-1681213550890.png

 

 

Susan Britt
Mega Sage
Mega Sage

I am assuming ADP is sending the new hire information to ServiceNow to create the User and HR Profile records.  Is that correct?  If so, you can create a business rule that once the new HR Profile has been created (add any other conditions that may be needed, like employee start date validation), create the new LE case for the onboarding service.  If the case is created in the Draft state, it will not kick-off the LE yet.  To have it automatically begin the LE process, create the case in "Ready" or "Work In Progress".

Hi @Susan Britt 

 

Yes you are right. ADP is sending the new hire information to ServiceNow to create the User and HR Profile records. 

Can you please share if you have any OOTB /sample script to achieve this as I'm quite new to this.

 

Also how do we add activities/activities sets to this Lifecycle Event., if we create HR LE Case via script.

Usually we can add record producer and L.E in hr service to trigger activities right.

 

Thank you!!