How to send a notification when sla breaches before 24 hours of time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2018 12:13 AM
How to send a notification when sla breaches before 24 hours of time?
- Labels:
-
Service Level Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2018 12:18 AM
Hi Satish,
You need to create a SLA Workflow on task_sla( or check the default SLA workflow in OOB version), it has SLA percentage timers that send warning and breach alerts to users.
Mark if Correct/Helpful
Thanks
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2018 01:11 AM
How to achieve this through scheduled job

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2018
02:33 AM
- last edited on
‎09-15-2023
06:47 PM
by
ServiceNow
Hi Satish,
- Create a new Scheduled Job, set Run - Daily and set time
- In Script field write below code :
var gr = new GlideRecord('task_sla');
gr.addEncodedQuery("original_breach_timeRELATIVELT@hour@ago@24^active=true");
gr.query();
while (gr.next()){
gs.eventQueue('your_event_name',gr);
}
Events and Email Notification - ServiceNow Wiki
Creating a Scheduled Job - ServiceNow Wiki
Thanks
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2018 02:41 AM
Thanks.