Business Rule Not Triggering on Field Change - Only Works in Condition
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi Team,
I'm experiencing an issue where my business rule is not triggering when a field value changes on a table.
Configuration:
- When: before
- Condition: changesTo
Script:
(function executeRule(current, previous /*null when async*/) { gs.addErrorMessage(gs.getMessage("BR triggered")); })(current, previous);
Issue: When I modify the specified field on the table, the business rule doesn't execute - I never see the error message displayed.
Workaround: Interestingly, if I add the same code snippet to the Condition field, it works and the message appears.
Questions:
- Why would the script execute in the Condition field but not in the When to run?
- What configuration might I be missing that prevents the business rule from firing on field change?
- Are there any prerequisites or additional settings needed for field change business rules?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
The BR works in server side. If you don´t save the record does not run.
