- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 03:18 AM
Hi all,
I'm looking to set up activity sets in a lifecycle event to trigger on a specific date.
As an example, we have staff in the organisation that will apply for promotion using a HR catalog item which will then trigger the lifecycle event.
For each activity set, all staff will see the next activity set trigger on the same date.
Is this possible? If it requires some scripting using the 'Advanced' option in the activity set, some examples would be appreciated.
Thanks!
Solved! Go to Solution.
- Labels:
-
HR Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 02:21 PM
The way to get an activity to trigger on a certain date, is to put it in an Activity Set that uses a date-based trigger.
You may also be able to try using a Flow activity type.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 03:34 AM
Hi Vimal,
You can explore and use
gs.eventSchedule();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 03:39 AM
Hi Vimal,
Please try
gs.eventQueueScheduled(String name, Object instance, String parm1, String parm2, Object expiration)
Last parameter is the date/time when you want to trigger this event. you can either give specific or any dynamic date there .
Please mark this correct and helpful if it helps.
Regards!
Uma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 09:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2022 03:12 PM
Hi Christian,
Good point, I do need to get the date from somewhere in ServiceNow. I was initially hoping a script may assist without requiring a specific date field within a case.
I realised a couple of hours after I posted this question, I did find a solution which does require creating specific date fields in a HR case which will auto populate the dates after each case in created (i.e. when a staff applies for a promotion).
The dates are auto-populated using the HR template within the HR service using a criteria.
So I have the solution I need to ensure I can trigger each activity set based on the date.