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

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Passing parameters to PaCE policies

# Passing parameters to PaCE policies {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Passing parameters to PaCE policies

ServiceNow's PaCE policies support parameter passing to validate updates on objects such as tables and document IDs.
This enables dynamic and flexible policy execution in both low-code and JavaScript authoring environments.
Parameters empower policies to make decisions based on provided input values and contextual data, enhancing control and customization in policy application.
Show full answer Show less  

## Parameter Types and Usage

* **API Variables:** Passed at policy invocation by developers, these variables (accessible as `apiVars` in code) provide runtime values to the policy. The sole predefined API Variable is `SnapshotId`, which is immutable and mandatory for execution. No additional API Variables can be defined.
* **Config Parameters:** Defined when mapping policies to objects, these parameters (available as `configParams`) allow configuration of policy behavior per mapping. Mandatory config parameters require values; otherwise, the policy is inactive and does not execute. For example, expense limits can be set variably per employee group when mapping a travel expense policy, enabling tailored validation.
* **Record References:** These enable querying ServiceNow tables to retrieve additional data necessary for policy logic. Accessible via `recordRefs`, record references can include aggregate queries to enrich decision-making within policies.

## Data Collectors

Data collectors gather input data either from ServiceNow or external sources, producing outputs that inform policy decisions. They are managed through creation, editing, and activation within the policy builder and accessed in JavaScript as `dataCollectors`. Auto-completion and UI drop-downs assist in selecting available data collectors and their outputs during policy editing.

## Benefits for ServiceNow Customers

* Enables highly configurable and context-aware policies that adapt based on input values and external data.
* Supports both low-code and scripted policy authoring for flexibility in policy management.
* Improves policy accuracy by validating object updates against dynamic parameters and data queries.
* Makes policy mapping more powerful by allowing parameterization specific to object instances.  
Parameters can be passed to a PaCE policy to validate updates to an object (tables and document IDs). These variables apply to authoring in both low-code or JavaScript. Policy versions include three types of parameter inputs: API Variables, Config Parameters, and Record References.

## API Variables {#pace-passing-parameters__section_nry_dsn_dpb}

Previously known as Caller Inputs, the API Variables is passed to the PaCE API at the time of invocation by a developer. The API Variable is a variable that enables you to pass the value to the policy whenever the policy is invoked. Specify a value for this
API Variable when calling the API, otherwise the policy is not executed and no decision is reached. In the code editor, the variable name is `apiVars`.

For each PaCE policy, there is only one pre-defined API Variable called SnapshotId. This API Variable is Immutable and cannot be modified or deleted. You cannot define any
additional API Variables for a policy.

## Config Parameters {#pace-passing-parameters__section_gsw_2sn_dpb}

Previously known as Mapped Inputs, the Config Parameters can be passed when mapping policies to an object (tables and document IDs). When you define a Config Parameter, you are creating a parameter
that enables you to pass values to the policy whenever the policy is mapped. If you define mandatory inputs, you must specify values for these inputs when mapping the policy. If the inputs you define are not mandatory, the
policy is not executed (the status is set to inactive) and no decision is reached. In the code editor, the variable name is `configParams`.

For example, for a travel expenses policy you can add variables to define the limits of
different types of expenses. The limits are specified when mapping the policy, and set the
limits on the expense when the policy is invoked on this object. The breakfast expense limit
for one group of employees could be $25, and for a different group of employees the limit
could be $50. Each time the policy is invoked, the expenses are validated by the policy
according to the limits specified in the mapping.

## Record References {#pace-passing-parameters__section_xch_4bk_pwb}

Record references define queries to extract data from any ServiceNow® tables and use the data to configure the policy logic. This feature enables you to retrieve additional data that may be required while defining the policy. You can define a query to perform
aggregate functions for a record reference. In the code editor, the variable name is `recordRefs`.

## Data Collectors {#pace-passing-parameters__section_a1b_gpy_pyb}

The data collectors function collects input process data from ServiceNow or an external data source to provide an output. The output can be used in the policy logic to make a decision. You can define and manage data collectors by creating, editing, updating, and
activating them to your policy builder.  
Data collectors can be accessed by using the `dataCollectors` object in JavaScript.  
Note:  
Auto-completion lists all possible outputs and data collectors that are available to use.

While editing a policy in low-code, an output of the configured data collectors is available under the drop-down menu.

