How to copy value from mrvs variable to other variable set variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 05:52 AM
Hi Experts,
I have a requirement to copy a value from MRVS variable to other variable set variable. Please help me to achieve this.
Thanks, Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 06:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 06:27 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 04:01 AM - edited 05-24-2024 04:08 AM
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