The CreatorCon Call for Content is officially open! Get started here.

How to copy value from mrvs variable to other variable set variable

Jay N
Tera Contributor

Hi Experts,

 

I have a requirement to copy a value from MRVS variable to other variable set variable. Please help me to achieve this. 

JayN_0-1716468121119.png

 

Thanks, Jay

3 REPLIES 3

amaradiswamy
Kilo Sage

You can write a custom script in flow to get the mrvs variable and update the variable.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0743684

The above article should provide the sample code snippet to read mrvs variables

 

Community Alums
Not applicable

Hi @Jay N,

 

You are using MRVS & trying to copy the data in MRVS into other field.

- What are variable types of both these variables?

- What's your expected result if there are multiple rows in MRVS?

 

Please answer these so that I can give you the solution/code accordingly.

 

I started answering community questions recently. If my answer helped you in any way, please mark it as helpful or correct. It would be a great boost.

Hi Sai,

Thanks for response,

What are variable types of both these variables? - MRVS variable type is response and other variable type is list collector.

What's your expected result if there are multiple rows in MRVS? - The value should be copied to list collector type variable.


Thanks, Jay