Set MRVS from variables
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 01:08 PM
Hi ,
I have a RITM , in which once the SC Task 1 is closed then SC Task 2 will be created..
In the SC Task 1 , we have variables let's say var A, var B, var C
In SC Task 2, we have MRVS, now I want to set MRVS values which is present in var A , var B, var C
How can we achieve this functionality
Please someone help me here
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 03:05 PM
Hello @anvitha ash,
- First, you need to create a business rule on the SC Task table that runs when SC Task 2 is inserted. The business rule should get the parent RITM of the SC Task 2 and then get the SC Task 1 that belongs to the same RITM. The business rule should also get the variables from SC Task 1 and the MRVS from SC Task 2.
- Second, you need to use a GlideRecord object to loop through the MRVS rows and set the values based on the variables from SC Task 1. You can use the setValue method to assign the values to the MRVS fields. You can also use the update method to save the changes to the database.
- Third, you need to test your business rule by creating a RITM with SC Task 1 and SC Task 2 and verifying that the MRVS values are set correctly.
Hope this helps.
Kind Regards,
Swarnadeep Nandy