logo

NJP

Accessing Multi-Row Variable Set value outside the Multi-Row Variable Set [Catalog Item, Client Side]

Import · Apr 16, 2019 · article

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

Hi there,

A short article to share knowledge gained about accessing values within Multi-Row Variable Sets, outside the actual Multi-Row Variable Set + Client Side! I noticed multiple Community articles with questions about accessing the values outside the Multi-Row Variable Set, though no happy responses yet. Because we were dealing with something similar, and I found a way today... here to share with you!

Reading multiple topics, looking Goran's great video's, reading Brad's really strong article, still no clue. Though, today somehow... Eureka!

Some of you might have noticed, you can access Variables by IO:ec2c131a0f70b380861309bce1050e1b (some sys_id). Hmmm would that be possible for Variable Sets also? Or in this case Multi-Row Variable Sets? Here it goes...

1) onChange Catalog Client Script, really limited, just for testing purposes

image

(the sys_id is the sys_id of your Multi-Row Variable Set)

2) The result, the value is available!

image

Obviously, you do have to parse to JSON. This test is also very limited, just a small onChange Catalog Client Script. Though it's a start, a start that could give great possibilities!

---

And that's it actually. Hope you like it. If any questions or remarks, let me know!

Kind regards,

Mark Roethof

ServiceNow Technical Consultant @ Paphos Group---

LinkedIn

image

View original source

https://www.servicenow.com/community/developer-articles/accessing-multi-row-variable-set-value-outside-the-multi-row/ta-p/2308876