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 to auto populate Multi row variable set one variable dynamically

Chandra18
Mega Sage

I have a variable on catalog form which type is multi line text and name is 'network name',. 

In this variable user can provide the value with ',' (comma seprate) like: Testname, teatname1... Etc. 

I have added a multi row variable set and make visible on catalog task form only. 

My requirement is the first variable/field(name is: Give the value for network name) of MRVS should be auto populate from network name field and it should take one by one value when I am adding row in MRVS. 

For example: if network name : Testname, teatname1. 

For first row of MRVS 'Give the value for network name' should be populate - Testname

& for second - Testname1. 

 

Thanks in advanced. 

 

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Chandra18 

 

OOTB not available. For this right a catalog client script and use Regex to get the specific value and popluate this. What is the exact use case you looking here. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

I write the script but it's split the value but not set value in MRVS. 

If possible could you please provide the script. 

 

Hi @Chandra18 

 

This is the area, i am still learning. I am not a coder so cant help much here. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************