SLA repair script to repair SLA for 750 tickets / Bulk SLA repair script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 09:15 AM - edited 12-14-2023 09:19 AM
Hi All,
We have SLA discrepancy observed and want to repair SLA for 750 SCtask ( in sc_task_sla)
Need help with a Script to execute the bulk SLA Repair and update.
Any feedback on the same will be highly appreciable.
Please Note : The changes needs to be done on production any challenges on notification triggers or any other impact of these changes can also be updated which we can take into consideration.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 09:23 AM
Hi @Kaustubh k
In this case, inform to user that you are blocking the outbound emails for let say 30 mins. (Its tricky but no other way)
Change the property (email) outbound off.
Go to task sla Table and select all required records and repair SLA.
Instead of script do by this way ( make a chunk of 100)
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
12-14-2023 09:26 AM
Hi,
Using below you can do the repair.
var repair=new SLARepair().repairByGlideRecord(gr)//gr is the glide record object of the task to be repaired
After repair notification will be triggered based on the condition after repair.
Thanks and Regards,
Saurabh Gupta