how to call two script includes in reference qualifier field of service catalog variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2016 07:56 AM
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
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.
I tried this but isn't working.
Kindly help me with this issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2016 09:05 AM
Use this
javascript:scripinclude1+'^NQ'+scriptinclude2;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2016 09:29 AM
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......()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2017 09:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2017 10:03 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2017 10:05 AM
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());