Create a dynamic filter option
Dynamic filter options enhance filtering by allowing users to run existing script includes or JavaScript against a reference field within condition builders and dynamic reference qualifiers.
Before you begin
Role required: admin
About this task
This task describes how to create a new dynamic filter option and an associated script include.
Dynamic filter options "objectize" script includes/JavaScript, enabling them to be reused in multiple condition builders and dynamic Reference qualifiers. This type of filter enables you to modify a script once and have the changes automatically take effect everywhere the dynamic filter option is used.
When defining a dynamic filter, you can:
- use an existing is (dynamic) dynamic filter option (condition builder only)
- use an existing dynamic filter option (OOB or custom)
- create a new dynamic filter option and script include/JavaScript
All condition builder dynamic filters use the is (dynamic) operator and call a dynamic filter option. In the following example, the pre-existing dynamic filter option Me is being used. For a list of available pre-existing condition builder dynamic filter options, see Dynamic operators.
Note: Dynamic filters are supported in scoped applications, but they are not supported in UI policy conditions.
[Omitted image "DynamicOperands.png"] Alt text: Dynamic operands
Procedure
-
Create a scripted filter as a client-callable script include or business rule.
-
Navigate to System Definition > Dynamic Filter Options.
-
Select New.
-
Complete the form.
Field Description Label Enter a descriptive name for the dynamic filter option. Script Enter the name of the function you created, JavaScript (no script include needed), or the complete script include/business rule call, such as new GlobalCanvasUtil().refQualPaTabs().Field type Select Reference. Referenced table Select the table to which this dynamic filter option applies. Order Enter a number to designate the placement of this dynamic filter option in the filter option choice list. Roles Select the role a user must have to see this option. Active Enable or disable the option. Reference script Optional. Select the client-callable script include or business rule you created for the scripted filter. If the Script field contains JavaScript, an encoded query, or the entire script include/business rule reference, this field can be empty. Available for filter Select this option to display the dynamic filter option as a filter breadcrumb. Available for default Select this option to allow dynamic filter option to be a default in a dictionary entry. Available for ref qual Select this option to allow dynamic filter option to be selected as a dynamic reference qualifier. Note: Dynamic filters using Table API GET methods in scripts only work when using the same user configured in the basic authentication profile. To allow multiple users access to the dynamic filters, use global JavaScript APIs such as GlideRecord and GlideQuery APIs instead.
-
Select Submit.
Parent Topic:Filter admin functions
Related topics
---
title: Create a dynamic filter option
description: Dynamic filter options enhance filtering by allowing users to run existing script includes or JavaScript against a reference field within condition builders and dynamic reference qualifiers.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/platform-user-interface/t\_DynamicFilterOptions.html
release: brazil
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 2
breadcrumb: [Filter admin functions, Filters and breadcrumbs, Lists in the classic environment, Working in the classic environment, Working in Core UI, Configure UIs and portals, Configure user experiences]
---
# Create a dynamic filter option
Dynamic filter options enhance filtering by allowing users to run existing script includes or JavaScript against a reference field within condition builders and dynamic reference qualifiers.
## Before you begin
Role required: admin
## About this task
This task describes how to create a new dynamic filter option and an associated [script include](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/c_ScriptIncludes.md).
Dynamic filter options "objectize" script includes/JavaScript, enabling them to be reused in multiple [condition builders](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-user-interface/c_ConditionBuilder.md) and dynamic [Reference qualifiers](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-administration/c_ReferenceQualifiers.md). This type of filter enables you to modify a script once and have the changes automatically take effect everywhere the dynamic filter option is used.
When defining a dynamic filter, you can:
- use an existing **is \(dynamic\)** dynamic filter option \(condition builder only\)
- use an existing dynamic filter option \(OOB or custom\)
- create a new dynamic filter option and script include/JavaScript
All condition builder dynamic filters use the **is \(dynamic\)** operator and call a dynamic filter option. In the following example, the pre-existing dynamic filter option **Me** is being used. For a list of available pre-existing condition builder dynamic filter options, see [Dynamic operators](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-user-interface/r_UsingTheDynamicOperator.md).
**Note:** Dynamic filters are supported in scoped applications, but they are not supported in UI policy conditions.
\[Omitted image "DynamicOperands.png"\] Alt text: Dynamic operands
## Procedure
1. [Create a scripted filter](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/scripts/c_ScriptIncludes.md) as a client-callable script include or business rule.
2. Navigate to **System Definition** > **Dynamic Filter Options**.
3. Select **New**.
4. Complete the form.
|Field|Description|
|-----|-----------|
|Label|Enter a descriptive name for the dynamic filter option.|
|Script|Enter the name of the function you created, JavaScript \(no script include needed\), or the complete script include/business rule call, such as `new GlobalCanvasUtil().refQualPaTabs()`.|
|Field type|Select **Reference**.|
|Referenced table|Select the table to which this dynamic filter option applies.|
|Order|Enter a number to designate the placement of this dynamic filter option in the filter option choice list.|
|Roles|Select the role a user must have to see this option.|
|Active|Enable or disable the option.|
|Reference script|Optional. Select the client-callable script include or business rule you created for the scripted filter. If the **Script** field contains JavaScript, an encoded query, or the entire script include/business rule reference, this field can be empty.|
|Available for filter|Select this option to display the dynamic filter option as a filter breadcrumb.|
|Available for default|Select this option to allow dynamic filter option to be a default in a dictionary entry.|
|Available for ref qual|Select this option to allow dynamic filter option to be selected as a dynamic reference qualifier.|
**Note:** Dynamic filters using Table API GET methods in scripts only work when using the same user configured in the basic authentication profile. To allow multiple users access to the dynamic filters, use global JavaScript APIs such as GlideRecord and GlideQuery APIs instead.
5. Select **Submit**.
**Parent Topic:**[Filter admin functions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-user-interface/filter-admin-functions.md)
**Related topics**
[Create and edit filters]()
[Delete filters]()
[Create scripted filters]()
| title | Create a dynamic filter option |
| description | Dynamic filter options enhance filtering by allowing users to run existing script includes or JavaScript against a reference field within condition builders and dynamic reference qualifiers. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/platform-user-interface/t\_DynamicFilterOptions.html |
| release | brazil |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 2 |
| breadcrumb | Filter admin functionsFilters and breadcrumbsLists in the classic environmentWorking in the classic environmentWorking in Core UIConfigure UIs and portalsConfigure user experiences |