Send email notification when "Planned end date" is one week passed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 01:56 AM
Hi All,
->I need to trigger a email notification on change task table, when planned end date is one week passed (Excluding weekends) & if state is "In Progress".
-> The 2nd notification will be triggered on the next day if the state is still "In Progress".
-> The 3rd notification will be triggered on the next day if the state is still "In Progress". (Final remainder)
Can anyone help on this?
Thanks,
Saranya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 02:13 AM
So what did you start with?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 02:33 AM
Hi Ankur,
I have created a Scheduled job as below, But I am not sure how to exclude weekends. Can you check once?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 02:35 AM
you can add 7 days to planned date excluding weekends
check this link
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2022 02:29 AM
You can achieve this via a scheduled job. Create an event in event registry. Create a notification with the trigger as an event is fired and then use this event in a scheduled job using gs.eventQueue()