Need to stop business rule while flow designer executes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 11:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 11:49 AM
Hello,
You can apply setWorkflow(false) in code to stop all business rule execution.
refer :
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 12:13 PM - edited 03-06-2023 12:13 PM
How I can use setWorkFlow(false) in flow designer and how, thanks for response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 12:22 PM - edited 03-06-2023 12:25 PM
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.