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

Use this



javascript:scripinclude1+'^NQ'+scriptinclude2;


That is weird, it should work. Can you try this by adding only second script include and see if it retrieves any records.


javascript: addHCUserFil......()


Hi Abhinay,



I have the same question. i tried with above solution but it did not work..


How to call two script include in one reference qualifier?



goranlundqvist kalai ctomasi sabell2012



Thanks,


Harshvardhan


I agree with Abhinay, it should work. But it might perhaps have the same issue with ^NQ that is stated in here: ServiceNow KB: PRB647484: Using operator (^NQ) in encoded queries causes incorrect reference links i...



//Göran


Can you include what you have tried?



The end result of any reference qualifier is an encoded query string. How you construct it is not important as long as it is error free code.



Example:


javascript:'type=' + current.type +'^category=' + current.service



Example:


javascript:new myScriptRef().getFilterString(current, gs.getUserID());