How to stop running the business rules when we run fix scripts ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2020 10:15 PM
How to stop running the business rules when we run fix scripts ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2020 10:20 PM
Hi,
In the fix script use this
ritm.setWorkflow(false); //Do not run business rules
ritm.autoSysFields(false); //Do not update system fields
Kindly mark it correct and helpful if it solves your issue.
Thanks,
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2020 10:21 PM
Hi Anusha,
while running the fix script you can use below to avoid triggering any BR on the table being updated
setWorkflow(false)
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2020 10:24 PM
Use setWorkflow(false) to stop running the business rules.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2020 10:34 PM
Hi,
Please follow the below script code:- setWorkflow(false);
Which will stop running any business rule while triggering fix script.
If i was able to solve your query, please mark my answer correct and helpful.
Thanks & Regards
Prasant kumar sahu