Business rule overrides Record producer script

Ramesh_143
Giga Guru

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.

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@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.

Anantha27
Mega Guru

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

Rajesh Mushke
Mega Sage
Mega Sage

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