Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to turn off the business rule in flow designer?

JLeong
Mega Sage

Hi Guys,

 

Instead of running a background script, I would like to run a flow where I would need to update a bunch of asset records and change their retired date. I need to turn off the business rule so it would not send any notifications or trigger another process.

 

If using a script I will use :

gr.setWorkflow(false);   //Do not run business rules
gr.autoSysFields(false);  //Do not update system fields

 

How do we accomplish the same thing using flow designer?

 

Regards,

Jocelyn

 

 

 

 

 

 

 

2 REPLIES 2

kenetienne
Tera Contributor

I would also like a solution to this, I'm leaning toward creating a custom action but not certain it'll work

anurampalli
Tera Guru

hi Jocelyn @JLeong 

 

When do you logically want to the records and change their retired date?

If you identify a tangible trigger, you can make a flow and add a custom action with a script that will update all your records as well as using <GlideRecord>.setWorkflow(false);

 

Best 

Anu