Use encoded query string in a filter of the users table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2017 07:31 AM
Dear Community,
today I was about to filter our snow users. I received an excel file with all the users and I shoud do the same action with the list.
So I thought I am smart by using an encoded query string to create a filter. Now I got the encoded query string, but I don't know if I can even insert it somewhere to filter my users.
From the official documentation I see that I can either use my query string for creating and URL or use as a reference qualifier.
So is there a way to use my encoded query string?
The form is as follows:
GOTOuser_nameLIKEPeterORuser_nameLIKEPeter1ORuser_nameLIKEPeter2ORuser_nameLIKE3
kind regards,
Hendrik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2017 07:35 AM
You can create a script include with the query string and then call the script include wherever you want to use it. So if you use it on a list, add the condition:
Sys ID is javascript:nameOfScriptInclude()
You could then Save that filter for later use. You'll also be able to reuse the script include for instance in a report or a module.
https://developer.servicenow.com/app.do#!/api_doc?v=helsinki&id=r_GlideRecord-AddEncodedQuery_String