Business Rule to update Affected CI related list of a change request submitted via record producer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2018 10:23 PM
We created a record producer for change requests. We need to tag multiple CI and the way we determined for this is using the Affected CI related list. However we can't populate it by mapping a list collector as such we were advised to use a business rule that will update the related list after insert or async. Can anyone share how we can achieve this?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 12:46 AM
Hi JC,
Hope I understood correct
You have an Affected CI List Collector field on the Record Producer and Once you have the values and submitted the record producer these affected CI's Should be moved to " Affected CI Related List " Under the change request record
Is my Understanding correct ??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 12:56 AM
That is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 01:36 AM
Hi JC,
Please follow the below steps , I know there might be other ways to implement this task , But as of now iam going with this approach
1. Create a dummy field on the change_request table and data type is string
2. Under the record producer Script : get the values from the list collector By using producer like producer.list_Collector database name
3. map the list collector values to your dummy field on the change request table
4. Write a Before Insert Business rule
5.In the Business rule read the string from the dummny variable by using an array
6. GlideRecord to the task_ci table
7. Create individual records for each sys_id
8.
You can see in the task field give the currrent.sys_id variable
9. in the Configuration item field pass the sys_id that you have retrieved from the dummy variable
Please let me know if you need sample script
And Also Please mark helpful / Correct I fyour query is resolved
Rajesh kumar Annepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2024 10:48 PM
Hi @JC S_ ,
Can you tell me that how you are populating Affected ci in The list collector field