We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Regarind MRVS value read and set it into a multiline text

1_DipikaD
Kilo Sage

 Hi all, I have a requirement of get the MRVS values and set it into a Multiline text which is present inside a SingleRow Variable set from a catalog item but when it came to RITM and sc_task the vlaue is not visible accurately as expected.

i have attached the picture i have to set memebr of the distribution list  to the ITS CE-API API variable which is a multiline text set inside a single row variable set. i have write a OnSubmit() client script.but it is not giving accurate output it is show '/'  and the sys-id of the member i have tried

function onSubmit() {
    // Retrieve the value of the 'members_of_the_distribution_list' field
    var mvrsValue = g_form.getValue("members_of_the_distribution_list");
   
    g_form.setValue("api_variable", JSON.stringify(mvrsValue));
  
}

but it is not working can any one suggest how to achieve it through workflow

1__AshishKumaD_0-1715324775877.png

@Ankur Bawiskar 

5 REPLIES 5

current.variables.variable_name ='yes' ; // when its not part of variable set


current.variable_pool.variable_name = 'yes'; //when part of variable set

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad