After business rule is not running when a field is auto updated by the system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 01:39 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 01:52 AM - edited 08-18-2023 01:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 02:05 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 02:57 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 03:02 AM
Business rule :
The field updated by the system is "Has breached" (field B).