How to delay Incident creation for 10 Minutes if mid server down?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 06:08 AM
Hi All,
we have a requirement to delay Incident creation whenever Mid server down and if mid server down for more than 10 minutes then it should create Incident.
already we have BR for incident creation whenever mid server down ,so we wanted to amend the BR for delay of incident creation for 10 minutes.
Could anyone help us to delay incident creation for 10 minutes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 06:18 AM
you should have this via flow designer instead of BR
In flow you can use wait for duration - 10 mins and then create incident
OR
you can make your BR as Async and give 10 minutes sleep
var now = new GlideDateTime();
while(GlideDateTime.subtract(now, new GlideDateTime()) < "1970-01-01 00:10:00") {
// loop for 10 minutes
}
// creation logic here
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
12-26-2024 06:56 PM
Hope you are doing good.
Did my reply answer your question?
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
12-29-2024 08:58 PM
Hope you are doing good.
Did my reply answer your question?
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
12-26-2024 06:19 AM
@pavan garige I recommend you to create a flow/workflow which will get triggered whenever the status of MID server is down. This flow/workflow will have a timer (in workflow) or Wait for duration (in flow) which will wait for 10 minutes and again check the status of the MID server if the mid server is still down it will create an incident.
Please mark the response an accepted solution if this approach addresses your question.