The Zurich release has arrived! Interested in new features and functionalities? Click here for more

how can we bulk close ritms and Incident table using a script without triggering notifications

Rajan Kumar5
Tera Contributor

Hi Team,

 

How can we bulk close RITMs and Incidents using a script without triggering notifications and without impacting other processes in ServiceNow?

I tried using setWorkflow(false) while closing Incidents, which successfully disabled notifications. However, it also affected other processes like SLAs, Business Rules, and Workflows.

For example, SLAs still appear as 'In Progress' even after closing the Incident.

Is there a better approach to close Incidents and RITMs in bulk while ensuring notifications are disabled but SLAs, Business Rules, and Workflows function correctly?

Thanks
Rajan

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Rajan Kumar5 

 

https://www.servicenow.com/community/developer-forum/how-to-bulk-close-incidents/m-p/2123592

 

Yes, it will impact SLA, bcz when the SLA condition matches it trigger so this section will be surely get impacted. 

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Rajan Kumar5 

you can use setWorkflow(false) which avoids triggering business rules, notifications

It will impact SLAs if you use setWorkflow(false)

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