How do I read the values of variables in multi row variable set ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2019 02:07 AM
How do I read the values of variables in multi row variable set ?
I have create a multi row variable set for catalog item form in Service portal.
So that I can add multiple disk spaces just by clicking on add.
How do I read the values of those variables in workflow?
I have tried using "current.variable_pool.disk_space.getDisplayValue()" and also current.variables.disk_space.getDisplayValue().
But I am not able to read the values of variables in variable set.
Please help me on this.
Thanks,
Meghana P
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2019 02:22 AM
Hi
Can you check this Client script in below link -

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2019 02:57 AM
Hi there,
Where do you want the read the values of the MRVS? Is this onChange in your Catalog Item? Is this within the Workflow? Is this after submission? Etc..
In workflow for example, you could already do g_form.variables.your_mrvs_name. This will return the JSON format for the MRVS.
In Catalog Item, outside the MRVS, is a bit tougher. Though still possible. See this article I wrote on this:
Accessing Multi Row Variable Set value outside the Multi Row Variable Set [Catalog Item, Client Side...
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2020 12:50 AM
Hii ..
Please help me to convert this JSON object to normal array or normal text.
thanks,
Anubha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 12:09 AM
I am trying to read the variable values using workflow.
For all the other variables I can get the displayed values using
current.variables.variable_name.getDisplayValue()
But for variable set and variable values inside the variable set I am finding difficulty..