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.

How can we populate multiple variables on cloud catalog form dynamically?

Gaurav39
Tera Contributor

Hi All,

Could someone please help me in understanding how we can use variable rules on cloud catalog to population multiple fields at once? So for example if end user selects the business service on the form and then i want the application owner and technical owner variables to get populate dynamically.
I did used the "Rule" which are present on the variables but it can set one variables at a time as we can return a single value through script and i understand i can simply create multiple action to have this requirnment complete but why call the script include again in another action, doing the same gliderecord. Lets say i have to populate 5 fields, should i use onchange client script? with that i just have to call the script include once and be done with it. Please let me know your thoughts.

Kind Regards

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Gaurav39 

you can return multiple values from script include using JSON.

it should be achievable

https://community.servicenow.com/community?id=community_article&sys_id=53fa4b0adbd3cc1014d6fb2439961... 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader