How do I read the values of variables in multi row variable set ?

Meghana11
Kilo Contributor

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.find_real_file.png

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

21 REPLIES 21

I will do a small test to simulate. One moment 🙂

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thanks Mark:)

I'm instantly getting below in logging:

find_real_file.png

Only tested with a Run Script step in the workflow containing:

gs.info(current.variables.disk_space);

(I named my MRVS "disk_space")

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

LinkedIn

Can you share your exact Run Script utility script? And what is the internal_name of your Multi-Row Variable Set?

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

LinkedIn

Name of MRVS is extra_volume

find_real_file.png

 

Run utility script

 

var mrvs =current.variables.extra_volume.getDisplayValue()

gs.addInfoMessage(mrvs);

After submitting the catalog item and on workflow kickoff..when the script runs 

find_real_file.png