Schedule script execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 01:19 AM - edited 05-19-2025 01:21 AM
Hi Community,
I have a requirement where a notification needs to be fired 4 days prior to last day worked date (this field is available on HR case ).
The steps I have followed is :
1) Created event.
2) Created schedule script execution. Will call the event created in step 1 .
3) Created a notification and attaching event.
My concern is ,I want this date validation to be run specific to users time zone. I am guessing this we can resolve via addDaysUTC method but what we have to select in time zone field of schedule script execution record created for this.
Hope my query is clear. Please guide me to achieve this.
Thanks in advance 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 12:02 AM
@Ankur Bawiskar
As you suggested that we can use flow in this condition , so my query is what will be the trigger point.
Because we have requirement that notification needs to be fired 4 days prior to last day worked date (this field is available on HR case) but we can't configure this condition in condition builder of flow designer trigger point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 12:07 AM
since you require 4 days and that's not available in condition builder, then use scheduled job
I forgot that part.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 12:17 AM
And now while using schedule job - concern here is this that how should we run this schedule script execution so that all users from different zone get the notification correctly at their correct time .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 12:38 AM
you will have to run scheduled job in particular timezone example GMT
When the users want the email? on the starting time of that date in their record?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader