How to stop running the business rules when we run fix scripts ?

Ansuha Chipuri
Kilo Guru

How to stop running the business rules when we run fix scripts ?

5 REPLIES 5

Priyanka Chandr
Mega Guru

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

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

harshav
Tera Guru

Use setWorkflow(false) to stop running the business rules.

Prasant Kumar 1
Kilo Sage

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