--- title: Create a filter configuration using scripts description: Create filter conditions using script that you can associate with a table configuration. The search result displays results that meet the filter conditions. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-administration/contextual-search/create-filter-config-using-scripting.html release: australia product: Contextual Search classification: contextual-search topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Filter configuration for contextual search, Configuring contextual search, Contextual search, Search administration, Configure core features, Administer the ServiceNow AI Platform] --- # Create a filter configuration using scripts Create filter conditions using script that you can associate with a table configuration. The search result displays results that meet the filter conditions. ## Before you begin Role required: admin ## Procedure 1. Navigate to **All** > **Contextual Search** > **Table Configuration**. 2. Open a table configuration record on which to create the filter. 3. In the Filter Configurations related list, click **New**. 4. On the form, fill in the fields.
Field Description
Resource configuration Lookup icon \[Omitted image "look-up-icon.png"\] Alt text: Lookup icon to select a search context to select a resource such as Knowledge Articles.
Table configuration \[Read-only field\]. Table for which you want to apply the filter configuration.
Scripted filter Check box to select if you want to enter scripts in the **Script** field.**Note:** The **Script** field appears only when you select **Scripted filter**.
Application Application scope for your filter configuration.
Active Check box to activate the filter configuration.
5. Enter a script corresponding to the resource configuration. **Note:** Use one of these dynamic filter scripts to set up your dynamic filter. 6. Click **Submit**. **Parent Topic:**[Filter configuration for contextual search](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/contextual-search/filter-configuration-for-cxs.md)