How can I make a approval reminder for unapproved RITM that runs daily and works in 8-5 weekdays.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 03:36 AM
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 03:41 AM
Hi there,
I found a community article over here which will help you achieve this requirement. But just to give you a gist you need to create a Scheduled job that will run daily on a specified time and then that scheduled job will trigger a notification but for that you need to register an event and tag that event to your notification.
I hope my answer helps, if it does then please mark my answer correct.
Thanks,
Utpal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 04:15 AM
You can use scheduled job to run it in weekdays like below :
/* Get Day of week */
var day = new GlideDateTime().getDayOfWeek();
/* If day is not saturday or sunday then run the script */
if (day != 6 || day != 7) {
// your script to trigger notification
}
Vishal Birajdar
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates