How to delay Incident creation for 10 Minutes if mid server down?

pavan garige
Tera Expert

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?

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@pavan garige 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@pavan garige 

 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@pavan garige 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Sandeep Rajput
Tera Patron
Tera Patron

@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.