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-19-2025 03:47 AM
I think this article explains your use case properly and gives a script which you can implement in your scheduled job script
Solved: How to I get the user's current Timezone settings ... - ServiceNow Community
Hope this helps.
Please Upvote my solution if you find it helpful 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 04:12 AM
why to use scheduled job? you can use flow for this
what did you start with and where are you stuck?
You can run scheduled job daily at particular time, then check in that HR case the date/time and get to know that person's timezone
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-19-2025 11:53 AM
Hi @Ankur Bawiskar ,
Will you please how to design this solution using flow designer so that it will check the subject person's time zone and will trigger the notification.
Thanks in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 08:21 PM
what did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader