Business Rules and Slushbuckets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 03:58 PM
On the change form, when you go to the related lists. There is the "Affected CIs" related list. This table is task_ci.
If you setup a BR on task_ci and script it to log current.sys_id on inserts. When you select Edit on the related list and choose a single CI through the slushbucket. You can see that the log contains the sys_id of the CI that you added. All of this is as it should be.
Now if you do the same thing but select two CIs or more through the slushbucket, you only get one sys_id in the logs.
I was expecting separate inserts resulting in one entry per CI in the log but there is only one.
Why is this?
How do I access all of the records if there is more than one item selected in a slushbucket?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 05:14 PM
Other things that I've found. Not sure if any of it is relevant.
Using Debug SQL (Detailed)
- I can see two separate inserts. One for each CI. Not sure why this isn't triggering the BR twice?
- It's the top record in the slushbucket that works.
- The record that works has an insert and update. I changed the BR to also update to see what happens. Didn't make a difference.