Set MRVS from variables

anvitha ash
Tera Contributor

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

SwarnadeepNandy
Mega Sage

Hello @anvitha ash,

 

  1. 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.
  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.
  3. 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