Business rule overrides Record producer script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2024 12:49 AM
I wrote a record producer script, it runs as expected and record also creating successfully. but a business rule was running on the same table, at time of submition of the record that RP Script getting over ridded by that business rule.
Any one know how to achieve this.....i want to stop running the business rule while i am submtting the record through that record producer..
In Record producer script, i am just assigning a assignment group to that record after submition, but it was getting overrided by business rule.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2024 12:52 AM
@Ramesh_143 Ideally, you should make the changes in the business itself. However, if you still want to override the values of record producer over the business rule then at the end of your record producer you can try with
current.setWorkflow(false);
The setWorkflow(false); method doesn't let other flows/business rules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 02:03 AM
Hi @Ramesh_143
You can check if there is any other business rule is running in background so that you can get your output.
Then you can inactive the BR hence you can get your expected result.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 02:26 AM
Hi @Ramesh_143,
If you are setting any other field from the record producer script then add that condition in the BR to avoid running BR again to update the assignment group.
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke