- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 10:58 AM
Is there is anyways to stop execution of businesses rules if the update Is happen from another business rules. Tried setworkflow(false) in before business rules. But it's triggering after update business rules matching the update conditions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 11:31 AM
Do you want to connect over a call and close this I believe would be easy to explain it to you.
I am reachable at below linked in:
https://www.linkedin.com/in/shloke-srivastava-13a1b887/
Send me a request and we can connect now.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 11:05 AM
Hi,
You need to make below changes and it should work for you:
1) In the BR which you want to execute, include "setWorkflow(false)' in it and make sure to lower the order of that BR to say 50.
2) Now the other business Rule which is still getting trigger and you do not want it to get trigger make sure you increase the Order of that BR to say 1000.
For reference, I am talking about the field in Red below which you need to update:
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 11:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 11:15 AM
The other BR which you want not to execute, can you include the below line in that BR so that even if it executes it will not to do any Database update which should do the work for you.
current.setAbortAction(true);
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 11:21 AM
Did this worked for you? IF you are stuck let me know.
Regards,
Shloke
Regards,
Shloke