Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Access Catalog item variable inside MRVs

pk31
Tera Contributor

I have a requirement, In which I need to use catalog item variables inside MRVS.
In mrvs, I have one lookup select box, and I want to display values in the lookup select box based on the value of catalog item variable.

5 REPLIES 5

ViktoriaMikoova
Tera Contributor

In Washington it's possible with the new g_service_catalog API. Just create onLoad catalog client script on the MRVS and you can use this to get any value from the catalog item variables: 

 

g_service_catalog.parent.getValue('<some_var_name>');

 


g_service_catalog - Client Documentation