- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2025 06:28 AM
I have a task that consist of :
If an incident is opened more than 5 hours and no status change detected, a notification must be sent to the manager of the assigned to.
add a worknote to notify that the incident has been notified to the manager
Raise the priority of the incident
I want to know how to send notification with script for this exemple
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 01:35 AM
Hi @DoloLeNom ,
1. create an Event in the event registry
2.Create A BR on insert in the BR use below code and add respective varaibles and processTime.
gs.eventQueueScheduled('sn_app.user.deactivate', now_GR, requestXML, gs.getUserID(), processTime);
3.Create a notification use the event and give additional condition state is New
4. In the notification mail script Glide the specific record and update the work notes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2025 06:32 AM
you can use flow and trigger when incident is created
Then use Wait for Duration flow logic and wait for 5 hours
After that check if the State is Still New
If yes then use "If Flow" logic and update the record and send email to manager
what did you start with and where are you stuck?
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
06-26-2025 01:07 AM
I have to do it with script I did not mention it but it is an exercice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 01:35 AM
Hi @DoloLeNom ,
1. create an Event in the event registry
2.Create A BR on insert in the BR use below code and add respective varaibles and processTime.
gs.eventQueueScheduled('sn_app.user.deactivate', now_GR, requestXML, gs.getUserID(), processTime);
3.Create a notification use the event and give additional condition state is New
4. In the notification mail script Glide the specific record and update the work notes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 01:38 AM
Thank you for your help 🙏