Business Rules and Slushbuckets

B3N_AU
Tera Guru

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?

1 REPLY 1

B3N_AU
Tera Guru

Other things that I've found. Not sure if any of it is relevant.

Using Debug SQL (Detailed)

  1. I can see two separate inserts. One for each CI. Not sure why this isn't triggering the BR twice?
  2. It's the top record in the slushbucket that works.
  3. 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.