After business rule is not running when a field is auto updated by the system

WA1
Kilo Sage

Hello, 

I have a field "A" that must be updated when the value of the field "B" is updated (both fields are in the same table), to do this I created an after business rule that runs each time the field "B" is updated and it puts the needed value for the field "A". 

 

When I test updating the value of the field "B" directly in the form, it works and the field "A" is updated also but when the field "B" is automatically updated by the system, the field "A" is not updated..

 

I thought that maybe there's a setworkflow(false) in the OOB script that updates the field "B" but even when I changed my business rule from after to asynch it didn't work.

 

Do you have an idea on how to resolve this?

Thank you 

8 REPLIES 8

OlaN
Giga Sage
Giga Sage

Hi,

If the "system update" runs with a setWorkflow(false) then it does not matter how your business rule is configured, no business rules will run if a script updates a record with setWorkflow(false)

If that is the case, you will have to make sure that the other script updates both fields, or change it to run with business rules activated.

Hi Olan, 

But I saw that the setWorkflow(false) won't work for asynch business rules ==> KB0957088  

Interesting! I did not know this.

But if you changed your business rule to run as async, you no longer have access to the previous value.

Can you share your business rule script, and conditions config?

Business rule : 

 

WA1_0-1692352819063.png

WA1_1-1692352877591.png

WA1_2-1692352911037.png

The field updated by the system is "Has breached" (field B).