- 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-25-2024 05:58 AM
What does the code of your UI Action look like?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 06:07 AM
There is actually no code in that its just "current.update()", we are setting the field value in action tab of the BR.
- 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-25-2024 06:41 AM
So, first I'm sending those selected records to a SI which updates the stage to "finalize" and state to "Sanitize". Than my first BR should run which moves the state from "Sanitize" to "issue" and then 2nd BR which changes stage from "Finalize" to "response" and state "Issue" to "Evaluate". Currently we are just skipping the Finalize's Sanitize and Issue state as its early in the project, we don't what is the process in those states for now we just need to move them From Finalize to Response with BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 06:56 AM
Hi Brad,
Thanks for pointing it out I figured out the issue, so on the second BR there is some code which is setting workflow to false. And I think that's why only 1 records is triggering the BR as during 2nd BR execution it sets the workflow to false.