Turn off business rule during flow execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2021 03:28 AM
I am updating multiple records thru flow designer. Since Business rules are set on the fields which are getting updated, i am not getting the expected results. please help on how to disable the business rules during the flow execution.
similar to setworkflow(false) used in Scripts.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2021 03:47 AM
I don't think there is any flow action that would execute the logic similar to setworkflow(false). Are the many Business Rules to be deactivated? As a workaround, you could do the call to "sys_script", set the required BRs to active=false before your records are updated, then re-activate the BRs afterwards.
Let me know if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2021 03:56 AM
Thank You Pavlo.
Inactivating and activating the BR thru script can impact other use cases as i am working on reassigning cases to assignee's mgr when assignee is inactive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2021 01:59 PM
Hi.
I did some experimentation, just for the fun of it, and there is a way around.
I can't say that I would recommend going down this way, a better way might be considering to change the conditions on when your business rules run, if that is possible.
That being said, a way to work around the business rules is to create a custom script action in the Flow, and call it to change the values as needed, and in the script insert the same old gr.setWorkflow(false); as you would in any script.
Example below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2022 12:43 PM
HI Olan,
I have tried this and still its not working.
Scenario: I need to paste copy additional comments from task to task but it should now copy the same on REQ item which is parent. We have push comments BR for both sc_task and sc_req_item tables to exchange the comments. Now once i place this action before the update task or after update task still its not working.
I only want to stop the BR when the task is created and comment is pasted.
Thanks in advance