is there way in a flow to stop business rules from running when updating a record

nlaw
Tera Contributor

I am updating a record in flow and when I do that it triggers a business rule that I do not want to run.  The business rule in question is OOTB so I do not want to touch it.  Is there a way to stop the execution of business rules from flow.  I know of the setworkflow(false) method in glide record but that is not helping me in this case.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@nlaw

OOTB when you use "Update Record" flow action there is nothing available OOTB for this to skip BR execution

@Huynh Loc already shared the workaround and that's the only way to disable BR when using flow.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

3 REPLIES 3

Huynh Loc
Mega Sage

Hello,

You can use setWorkflow(false) within the action script of the Flow to prevent all Business Rules from being executed.

If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution.

Tanushree Maiti
Kilo Patron

Hi @nlaw 

 

setworkflow(false) is the best method to work in your case though it doesn't prevent async business rule.

 

Alternative  you can see in this post :

https://www.servicenow.com/community/servicenow-ai-platform-forum/turn-off-business-rule-during-flow...

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Ankur Bawiskar
Tera Patron

@nlaw

OOTB when you use "Update Record" flow action there is nothing available OOTB for this to skip BR execution

@Huynh Loc already shared the workaround and that's the only way to disable BR when using flow.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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