List Filters & Encoded Queries
Edit encoded queries, expand complex filters, and add missing filter operators in ServiceNow lists.
Last updated: November 2, 2026
Build and reuse list filters without leaving the list. These features also work on classic related and embedded lists.
View / Edit Encoded Query
There are three ways to open the encoded-query editor:
- Double-click the breadcrumb area: the whitespace or one of the crumbs
- Click the filter button that SN Utils adds next to the list-header hamburger
- Choose Edit encoded query… from the table-name popover
The query includes the list's active ORDERBY or ORDERBYDESC sorting, and any GROUPBY.
You can paste an encoded query like:
caller_id.nameSTARTSWITHfred^caller_id=5137153cc611227c000bbd1bd8cd2005^priority=1^state=3^ORDERBYDESCnumber
Replace the existing query and click Apply query (or press CTRL/CMD+Enter). The new filter applies even if the list refreshes while the editor is open. Split lines puts each clause on its own line for long queries, Reset restores the query the editor opened with, and Cancel restores the original list filter.
In the Split lines view, Pro users can reorder the clauses: each condition becomes its own row: drag a row by its handle, or move the focused row with Alt/⌥+↑ and Alt/⌥+↓. Typing in the empty Add condition… row at the bottom appends a new clause (and a fresh empty row appears below it). OR and NQ clauses are badged so query structure stays visible, and the active sorting and grouping stay pinned below the list. Switching back to Single line returns to the plain text view.
Pro, Trial, and Enterprise users also get a compact Pro actions row:
- Describe query: explain the current encoded query in plain language
- Script builder: preview and configure a read, update or count script for the current query, generated from your own
list-querysnippet template, with a live count of matching records - REST URL: copy the Table API URL with the list columns as
sysparm_fields - New slash command: save this list as a reusable slash command, like
/newcmd - Related data: find records in other tables that reference the records matching this query
The Free plan keeps the complete query editor and shows a trial or official-build option when Unlock Pro query tools is selected.
Use cases:
- Test encoded queries you find in documentation or code
- Build an encoded query in the list, then copy it for use in scripts or condition fields
Expanding Complex Filters
When you have OR conditions or complex filters, the search bar may be hidden and the icon to show it disabled.
SN Utils adds an icon behind each field name that lets you add an AND condition for that field.
After clicking the icon:
- The filter gets pinned
- A placeholder for the field is added
- You can easily adjust and dot-walk to create complex filters
Inject Missing Filter Operators
Some field types in the filter builder don't expose every operator that the ServiceNow platform actually supports: for example contains (LIKE) on numeric fields, or is one of on string fields.
CTRL/CMD-click the operator dropdown in any condition row to inject the missing operators on the spot:
[SN Utils] contains(LIKE)[SN Utils] does not contain(NOT LIKE)[SN Utils] is one of(IN)[SN Utils] is not one of(NOT IN)
The injected operators behave exactly like their built-in counterparts when the filter is applied. They are added per-dropdown on click, so they don't pollute every filter row by default.