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 call two script includes in reference qualifier field of service catalog variable

Mamta Waghmare
Tera Contributor

I have a script include written to get users of a particular country and another script include to get user of different country according to which user of country is logged in. I get a list of users of that particular country.

I have been successful in calling two script includes in a reference qualifier for normal incident variable caller_id

find_real_file.png

Now I want to call these two script include in service catalog variable "Request for " to get users according to the logged in user of that particular country.

find_real_file.png

I tried this but isn't working.

Kindly help me with this issue.

12 REPLIES 12

javascript: 'sys_idIN' + new testing_location().checkloc() +'^NQ'+ new check_location_list().check_location();



I tried in this way.


i have also tried



javascript: 'sys_idIN' + new testing_location().checkloc() || javascript: new check_location_list().check_location();



but it's still not working?


Are you able to test those in scripts background?



Example:



gs.debug('sys_idIN' + new testing_location().checkloc() +'^NQ'+ new check_location_list().check_location());



What is the output? Are there any errors?