Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Rescind Activities

edupaz
Tera Contributor

Can somebody help me with this. 

Journey can be cancelled if a new hire no longer works for us.

If in the user table the "Active" field” becomes “inactive” for an employee who has a journey, automatically trigger the Rescind process.

xcvxcv.png

Thanks!

4 REPLIES 4

Sandeep Rajput
Tera Patron
Tera Patron

@edupaz You need to write a business rule on the sys_user table which will trigger when the Active checkbox on the sys_user table change to False and when the user has sn_hr_core.hrsm_new_hire role. 

In the script field you can trigger rescindCase method which is part of sn_hr_le.hr_ActivitySetAJAX script include.

 

Hope this helps.

@Sandeep Rajput Hi Sandeep, I have a similar query regarding this process. We will not be using the out-of-the-box rescind activity set. Based on HR's decision, we need to trigger the rescind process. I have an 'X' activity set that will be triggered by HR's decision. Within this activity set, I need to include an HR service that needs to rescind process. Please let me know if my approach is incorrect. I plan to create an HR service with a fulfiller activity as a Workflow/Flow to trigger the 'rescindCase' method.

 

Regards,

Sriraj

@Sriraj V This question demands a separate thread. Please create a new thread and tag me in it.

Sure, tagged you there. Thanks for the reply Sandeep.