OBLYTECH Logo
OBLYTECH Logo

Filter Navigator in ServiceNow: Conditions and List Filters

The filter navigator is the text box at the top of the application navigator. Type part of a name to narrow applications, modules and favorites, or add a suffix such as .list or .filter to open a table. In a list, the condition builder takes over: pick a field, operator and value, join conditions with AND or OR, then run.

What the filter navigator does

The application navigator sits on the left of the Core UI interface. It gives access to applications, modules, favorites and recently viewed items. At the top is the navigation filter, and beneath it are three tabs: All applications, Favorites and History.

The All applications tab lists each application menu as a labeled section, with modules by name underneath. The Favorites tab shows the items you have marked as favorites. The History tab shows items you opened recently, and a system property sets the maximum number of entries it shows.

The navigation filter works across those areas. Enter text and the navigator shows the applications, modules and favorites that match, with matching favorites appearing first in the results.

A second tool is easy to confuse with this one: the filter bar above a list. The text box decides where you go. The list filter decides which records you see when you arrive. This page covers both. For the wider picture, see the ServiceNow platform overview and the platform guides.

Going straight to a table from the navigation filter

The navigation filter also accepts commands that skip the menu tree. Type a table name followed by a suffix, then press Enter in Core UI.

Command What it does
table name.list Opens the table’s list view in the same window or tab
table name.form or table name.do Opens the table’s form view in the same window or tab
table name.config Opens the table’s configuration view in the same window or tab
table name.filter Opens an empty list so you can apply filters before the list loads

Two conditions apply. The table name has to match the name in the table’s dictionary entry exactly, as opposed to a menu label. The commands work only for tables you are permitted to access, so access decides whether a command opens anything.

Typing a command in uppercase opens the view in a new window or tab instead. Entering change_request.FORM, for example, opens a new change request in a new tab, keeping your current list in view.

Why the .filter command matters

The .filter command opens a list view with no records loaded, which suits a large table that is slow to load. You set your conditions first, then run them, so you are not waiting on the full unfiltered list.

Opening the condition builder in a list

Once a list is open, click the show or hide filter icon to open the condition builder. If that icon is disabled and the breadcrumb above the list contains a related list condition, remove that condition first. That condition was created when List v3 was enabled for the list, and List v2 does not support related list conditions.

The condition builder builds condition statements from contextually generated fields, and the same logic is used for filters, surveys and access control.

The three parts of a condition

A condition has three parts: a field, an operator and a value.

Field. A choice list based on the table and your access rights. It can include fields on related tables through dot-walking. For the concept itself, see dot-walking explained.

Operator. A choice list that depends on the field type. If an operator you expect is missing, the field type is the reason. A boolean field, for instance, has no less than or greater than.

Value. Either a text entry box or a choice list, again depending on the field type.

Choosing the right operator

The operator list changes with the field type, so it helps to know the families.

String fields offer is, is not, starts with, ends with, contains, does not contain, is empty, is not empty, is empty string, is anything, between, is same and is different. Between on a string matches where the first letter falls in a range, such as q through t. Is same and is different compare the values in two fields.

Choice fields that hold strings add is one of and is not one of to the usual string matches.

Choice fields that hold integers offer is one of, is not one of, less than, greater than and between, among others. The inclusive versions, less than or is and greater than or is, are not supported in the condition builder for these fields. A scripted condition covers that case.

Numeric fields offer the exclusive and inclusive comparisons, between, is empty and is not empty. They also offer field-to-field comparisons: greater than field, less than field, greater than or is field and less than or is field.

Date-time fields offer on, not on, before, at or before, after, at or after and between, plus is more than and is less than. They also offer trend operators and relative operators.

  • Trend operators match days of the week. With Monday as the example, “on” matches only Monday and “before” matches only Sunday. “On or after” includes every day except Sunday.
  • Relative (after) and relative (before) compare the time in the field with the time the query was entered, within a set interval such as one hour.

Boolean fields offer is, is not, is empty, is not empty and is anything. The “is not” operator matches records where the value is false, empty or NULL. Do not read “is not true” as “is false”.

Reference fields offer the string-style matches against the referenced record. Is same and is different test whether two fields reference the same record or different records. Three further operators are specific to references:

  • Is (dynamic) matches the record of the current user.
  • Is in hierarchy matches a manager hierarchy that starts at a named user and includes the users reporting up to that person.
  • Is in hierarchy (dynamic) does the same starting from the current user. A hierarchy has to be set up between the related records first.

For a related setup topic, see dynamic filter options for reference fields.

For a related concept, see encoded queries explained.

Joining conditions with AND and OR

Each added condition joins the existing ones through AND or OR. The controls sit in two places, and where you click changes the logic.

  • Dependent condition: click AND or OR beside an existing condition.
  • Top-level condition: click AND or OR on the toolbar above the conditions.
  • Remove a condition: click the X beside it.

Dependent OR: A and (B or C)

A dependent OR gives alternative criteria for a single item, such as one field, and behaves as A and (B or C). To list all unassigned problem and incident records, filter on Assigned to is empty, AND Number begins with PRB, OR Number begins with INC.

Top-level OR: (A and B) or (C and D)

A top-level OR shows results from several sets of criteria in one list, and behaves as (A and B) or (C and D). To list active hardware incidents together with inactive software incidents, build two condition sets separated by a top-level OR: Active is true AND Category is Hardware, then Active is false AND Category is Software.

Using both together

The two types can be combined. A filter using both behaves as (A or B) or (C or D), and AND conditions can be mixed in for very specific filters.

An OR has one side effect. Once a query contains an OR condition, the magnifying glass search is no longer available. Quick search header conditions are ANDed together, and with an OR present it is unclear whether a new condition goes before or after it.

Excluding records that hold a value

To find records that do not contain a specified value, use two conditions: the field is not the value, or the field is empty.

For other list shortcuts, see list column and record context menus.

Adding a sort, saving and running

After the conditions are in place, the remaining steps are short.

  1. Optionally click Add Sort, then choose a field and a sort order.
  2. Optionally click Save to keep the filter for future use. Depending on your access rights, you can save a filter for everyone, for a user group, or for yourself, and you can apply, edit or delete saved filters afterwards.
  3. Click Run to apply the filter.

Reading the breadcrumb

Applied conditions show above the list as a breadcrumb. In Core UI list views the breadcrumb can be truncated by two system properties. The property glide.ui.breadcrumb_max_entries sets the maximum number of items shown, with a default of 10. The property glide.ui.export.choice_list_max_characters sets the maximum characters shown for a choice list in the breadcrumb, with a default of 80. A crowded filter can therefore show a shortened breadcrumb.

Frequently asked questions

What is the filter navigator in ServiceNow?

It is the navigation filter at the top of the application navigator. Entering text shows matching applications, modules and favorites, with matching favorites first, and it also accepts table commands.

How do I open a table’s list without clicking through menus?

Enter the table’s dictionary name followed by .list in the navigation filter and press Enter. Use uppercase to open it in a new window or tab.

How do I filter a big table without waiting for it to load?

Enter the table name followed by .filter. It opens an empty list, and you add conditions and click Run.

What is the difference between a dependent OR and a top-level OR?

A dependent OR gives alternatives for one item, A and (B or C). A top-level OR joins separate condition sets, (A and B) or (C and D).

Why is an operator missing for a field?

Operators depend on the field type. A boolean field, for example, has no less than or greater than.

Can I save a list filter?

Click Save before running it. Depending on your access rights, you can save it for yourself, a group or everyone.