---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Create a filter configuration using scripts

# Create a filter configuration using scripts {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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 AllContextual SearchTable 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.  
   {#create-filter-config-using-scripting__test__entry__2}

   | Field | Description |
   |-|-|
   | Resource configuration | Lookup icon ![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. |
   [Table 1. Filter Configuration form]

   {#create-filter-config-using-scripting__test}
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.
{#create-filter-config-using-scripting__steps_glm_lhk_mdb}

*[\>]: and then


