Need to stop business rule while flow designer executes

manu7867
Tera Contributor

Hi all,

am having flow which makes user active false but there is business rule for some condition it’s making user active true, is there any way I can way that I can stop the business rule while my flow designer executes instead making business rule inactive

3 REPLIES 3

AshishKM
Kilo Patron
Kilo Patron

Hello,

You can apply setWorkflow(false) in code to stop all business rule execution.

 

refer :

https://www.servicenow.com/community/developer-forum/what-is-the-use-of-setworkflow-false-scoped-gli...

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

How I can use setWorkFlow(false) in flow designer and how, thanks for response

You can set updated by user in the BR condition to exclude the those records updated by Flow. Make a note of updated by user after flow execution and set the BR Condition accordingly. Similarly you can set the conditions in flow to if required.