how can we bulk close ritms and Incident table using a script without triggering notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 02:52 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 02:55 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 03:32 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader