- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 12:23 PM - edited ‎09-24-2024 01:04 PM
Hi experts,
I have 2 business rules which are triggered after the stage and state value is changed.
I'm updating multiple records with the help of UI action, now what actually happening is, UI action is working fine its setting the field "stage = Finalize" and "state = Sanitize". And at this point my 2 after BRs should trigger which are triggered
1. "stage = Finalize" and "state = Sanitize" and set it to "stage = Finalize" and "state = Issue".
2. "stage = Finalize" and "state = Issue" and set it to "stage = Response" and "state = Evaluate".
But when when I'm sending multiple records only the first record triggers the BR and I see the value updates as "response and evaluate" rest of the records are not triggering the BR.
In SS1 and SS2 you can see SS1 is triggering the BR but not SS2. I also added 2 screenshot for BR.
Thank you in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 06:30 AM
I don't understand how you are using current.update when selecting one or multiple records selected in a list view. There must be more to it than that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 01:10 PM - edited ‎09-24-2024 01:11 PM
I suggest that you change the "When" to 'Before', not 'After' as the records are written to the DB then the 'After' BRs run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 05:48 AM
I'll try it but I'm not sure why they are using after BR (maybe part of some other story) but the issue is why is BR triggering for the 1st record and not for others (also works when I use the UI action on 1 record at a time but fails when I process multiple records).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 01:40 PM
One of the issues is "changes to" vs 'is'. The first BR does not change the Stage - it's already Finalize, so the set value is not doing anything. On the second BR, the value doesn't change to Finalize when the State changes to Issue, so it's not running. Is there a reason you are running these after update instead of before? Why do you have two rules instead of the first one just setting the values to Response and Evaluate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 05:45 AM
Hi Brad, it must be a part of other story but I also tried using is instead of "changes to" but still only 1st record is triggering the BR. I'm not sure if I do 1 record at a time then it triggers the BR but not when I do it from list view to process multiple record then only 1 record triggering the BR.