Business Rules

smrutiranjanmal
Tera Contributor

when incident moves to resolve it should auto close in 10 minuets , when it reach 3rd,6th and 9th minutes these 3 reminder as email notification and auto close incident. please give me a business rule script for this scenario.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @smrutiranjanmal 

 

Instead of BR, use Flow and it will be Low code for you. 

 

https://developer.servicenow.com/dev.do#!/learn/courses/utah/app_store_learnv2_flowdesigner_utah_flo...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

maroon_byte
Mega Sage

For this, you will have to run your business rule/flow every minute on all resolved Incident tickets. Not a performance effective idea.

Edoardo M
ServiceNow Employee
ServiceNow Employee

Hi @smrutiranjanmal,

Merging the above ideas, you could use a flow which fires on resolved Incidents and combine the following 2 flow logics:

 
  • Do the following until state is closed (to stop the flow)
  • Wait for a duration (e.g.: 3 minutes) and then fire a notification, email or subflow for that actions, adding this multiple times as per your reminder requirement

Doing so, you save performance and logic maintenance.

 

Br,

Edo


Please mark it as helpful and accept it as a solution if it helps you in any way.

Jayant_M
Kilo Sage

Hi @smrutiranjanmal ,

 

You can try gs.eventQueueScheduled() by giving wait duration.