---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://www.servicenow.com/docs/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 an assignment rule

# Create an assignment rule {#ariaid-title1}

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

Automatically assign a record according to one or more conditions in an assignment rule. Assignment rules are designed to run at the time you open a record.

## Before you begin

Role required: assignment_rule_admin or admin

## Procedure

1. Navigate to AllSystem PolicyRulesAssignment.
2. Select New.
3. On the form, fill in the fields.  
   {#t_AssignmentModuleRule__table_avd_2sh_fq__entry__2}

   | Field | Description |
   |-|-|
   | Name | The descriptive name for the assignment rule. |
   | Active | Option to activate the assignment rule. |
   | Applies to ||
   | Table | The table with the records that the assignment rule applies to. The list shows only tables and database views that are in the same scope as the assignment rule. If you select a custom table that extends the task table, and for the assignment rule to work properly, you must clear the instance cache by navigating to https://\<instance_name\>.service-now.com/cache.do. Important: Clearing the system cache can affect overall performance, and degrade system response times. Do not run cache flushes during business hours, and do not trigger cache flushes automatically. |
   | Conditions | The conditions under which the assignment rule applies. |
   | Assign to ||
   | User | The user the event is assigned to. |
   | Group | The group the event is assigned to. |
   | Script ||
   | Script | A script to specify advanced assignment rule functionality. The current.variable_pool set of variables is available. Note: Make sure the input in the script is correct, and that the input type matches the field type in the Assignment Rule script. For example, if the assignment rule script sets the value of an Integer field, and the value in the script is set to String, the assignment rule may yield unexpected results. |
   | Optional fields ||
   | Match conditions | Any :   If any of the conditions are met, assignment rule applies. All :   If all the conditions are met, assignment rule applies. |
   | Execution Order | The order in which the assignment rule is processed. If assignment rules conflict, a rule with a lower-order value takes precedence over a rule with a higher value. If the order values are set to the same number, the assignment rule with the first matching condition takes precedence over the others. Only the first assignment rule with a matching condition runs against a record. |
   [Table 1. Assignment rule form]

   {#t_AssignmentModuleRule__table_avd_2sh_fq}

## Condition editor {#t_AssignmentModuleRule__example_wzz_htk_kyb}

In this example, the condition statement automatically assigns any incident opened in the Network category to the system administrator in the Network assignment group.  
Figure 1. Applies To  
Figure 2. Assign To
**Related concepts**   

* [Assignment rules module](https://www.servicenow.com/docs/rR78IoisLlgCOyK3ZOrqOw "The Assignment rules module allows you to automatically set a value in the assigned_to and assignment_group fields when a set of conditions occurs.")
* [Data lookup rules](https://www.servicenow.com/docs/M~dNIR1lsNC51geTU8yfiQ "Data lookup rules offer a generic way to change any field value, not just assignment fields.")
* [Precedence between data lookup, assignment, and business rules](https://www.servicenow.com/docs/hvWUlSrSKDn2adzOkFj6kA "Scripts, assignment rules, business rules, workflows, escalations, and engines all take effect in relation to a database operation, such as insert or update. In many cases, the order of these events is important.")
* [Workflow assignments](https://www.servicenow.com/docs/HahASFLyxHPF_dItxEE_gw "An alternative to creating data lookup or assignment rules is to create one or more workflow tasks that assign a task record as part of a workflow.")  
**Related tasks**   

* [Create an assignment data lookup rule](https://www.servicenow.com/docs/vQHScXzjNwEQtbe5bwW~XA "Automatically assign a record using Data Lookup and Record Matching.")  
**Related reference**   

* [Baseline assignment rules example](https://www.servicenow.com/docs/CsSPKXDDusnJgP13ayXwuw "A baseline instance contains certain assignment rules.")

*[\>]: and then


