---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create new variables for policy

# Create a new variable for a policy version {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 Minuten Lesedauer

Create an API Variable, Config Parameter, or Record Reference for the policy version in the Define Variables section of the Policy Builder.

## Vorbereitungen

If you want to create a variable that will apply to all of your policies, then do the following:

1. Go to the Variable Definition section on the main page.
2. Select the variable section that you want to create.
3. Select Add.
{#pace-create-variable-policy-version__ol_esj_b54_1xb}

When you save the variable, it will show up in the Define Variables section on the Policy Builder of the policy.

Role required: sn_pace.code_editor

## Prozedur

1. In the Policy builder tab, select the version of the policy you want to add a new variable to, then the Data sources icon ![Data source icon]().
2. In the Details form of the relevant policy, select the Versions tab.
3. Select the Version Number of the relevant policy version.
4. Select the Policy Builder tab.
5. Select the variable tab that you want to create a variable from then select NewAdd.  

   <br />

   <br />

   A pop-up window appears titled with the variable you want to create.
6. On the form, fill in the fields as needed.  
   {#pace-create-variable-policy-version__table_ebc_dmk_pwb__entry__2}

   | Field | Description |
   |-|-|
   | Label | Label name of the variable. |
   | Name | Name of the variable. |
   | Type | Drop-down list of input types: * Basic Date/Time * Basic Time * Choice * Data Array * Data Object * Decimal * Email * Integer * IP Address * JSON * Other Date * Reference * String * Sys ID (GUID) * True/False {#pace-create-variable-policy-version__ul_dnm_gmk_pwb} Depending on the input you choose, the Advanced Options provides different fields for some inputs. For more information, see the [Data type descriptions](https://servicenow-prod.fluidtopics.net/GJpoWn~ZZdQ30klgRPc2jg "The following is a list of the most common data types for creating a variable.") topic. Hinweis: The list only shows the most common used data types. |
   | Mandatory | Option to make this variable mandatory. When the variable is mandatory, a value must be provided when mapping the policy. Otherwise the policy can't be executed. |
   | Description | Description of the variable. Hinweis: When you add a description for a Config Parameter variable, it will show up under the tool tip icon ![Tool tip icon.]() in the Test Parameters tab. |
   | Default Value | Default value for the variable. Hinweis: When you create a record reference, select a reference in the Table field, this field enables you to select a dependent document from the reference. |
   | Function (Optional) | Functions to aggregate your condition. Choices are as follows: * Average: Average value of the condition. * Count: Count of the number of non-null values. * Maximum: Largest or maximum value. * Minimum: Minimum value. * Standard deviation: Population of standard deviation. * Sum: Sum of all values. {#pace-create-variable-policy-version__ul_ipv_tkr_pwb} Hinweis: This field will only show up in the Record Reference variable form with the qualifier condition fields. |
   | Match criteria | A match criteria for your record reference. Choices are as follows. * Select first match * Error on multiple {#pace-create-variable-policy-version__ul_twq_rmk_pwb} When you create a Record Reference, it will query multiple answers. The match criteria enables you to filter out the match by selecting the first match or return an error if there are multiple answers. Hinweis: This field will only show up in the Record Reference variable form with the qualifier condition fields. For more information about condition fields, see [Policy logic condition fields](https://servicenow-prod.fluidtopics.net/mrioBpbCBQ5~KQmkG99CBA "Policy logic is a set of conditions that is used for determining whether a policy is compliant or non-compliant. You can use the condition builder to specify conditions for the policy."). |
   [Tabelle : 1. Create a new variable form]

   {#pace-create-variable-policy-version__table_ebc_dmk_pwb}
7. Select Save.

## Ergebnisse

You can add your variables into the Policy Builder as needed. Additionally, you can delete a variable by selecting it and selecting the Delete button.

