Generate an encoded query string through a filter

You can generate an encoded query string through a filter on any list and paste the string into a URL query or a reference qualifier.

Before you begin

Role required: none

Procedure

  1. Open a list of records.
  2. Construct the filter.
  3. Click Run.
  4. Right-click the end of the filter breadcrumb and select Copy query from the context menu.
    Figure 1. Copy the query from the breadcrumb
    Copy the query

    If you are in split mode in List v3, right-click the blue filter text in the left pane.

  5. Copy the query to your system clipboard.
  6. Use the query string to construct a URL or an advanced reference qualifier.
    When you use the CONTAINS operator on a list filter, the system translates the filter to a LIKE query. For example, if you filter for active records with numbers that contain 123, the URL is https://InstanceName.service-now.com/incident_list.do?sysparm_query=active%3Dtrue%5EGOTOnumberLIKE123.