---
sourceDocument: Brazil Build workflows
sourceDocumentLink: https://www.servicenow.com/docs/r/build-workflows

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Create or Update Record step

# Create or Update Record step {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 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 Create or Update Record step

The Create or Update Record step in Workflow Studio allows ServiceNow customers to efficiently create a new record or update an existing one in any ServiceNow table with a single operation.
This step simplifies record management by automatically determining whether to insert a new record or modify an existing one based on unique identifier fields selected by the user.
Show full answer Show less  

## Key Features

* **Identification of Existing Records:** The step searches for existing records using one or more fields designated as unique identifiers (e.g., short description and priority for incidents). If a matching record is found, it updates that record; otherwise, it creates a new one.
* **Input Flexibility:** Users specify the target table and provide field values either statically or dynamically through data pills. This enables integration with complex workflows and dynamic data inputs.
* **Uniqueness Determination:** By selecting fields as unique identifiers, the step can decide whether to update or create a record. If no unique identifier is selected, the step always creates a new record.
* **Error Handling:** If multiple records match the unique identifiers, the step produces an error and does not update any records. Users can configure the step to either continue to the next step or go to error evaluation upon failure.
* **Output Data:** The step outputs useful data such as a reference to the created or updated record, the table name, status messages, and error information, which can be used in subsequent workflow steps.
* **Limitations:** The step does not support updating multiple journal fields (e.g., additional comments or work notes) and server-side validation rules may trigger from dynamic field values, but UI policies will not.

## Practical Application Example

For instance, when creating or updating a Problem record, the step uses inputs for description and a reference to a User record. The uniqueness is determined by the Problem statement and Opened by fields; matching these results in an update, otherwise a new record is created.

## Roles and Availability

This step is available as an action in Workflow Studio and requires users to have the **actiondesigner** role to create custom actions incorporating this step.

## What Customers Can Expect

ServiceNow customers leveraging the Create or Update Record step can streamline their automation by handling record creation and updates within a single configurable action. This reduces workflow complexity, enhances data integrity through controlled uniqueness, and provides detailed execution feedback to manage errors effectively.  
Create or update a record in a ServiceNow table using a single operation. Update a record that exists, or create a record using the values provided.

## Identification of existing records {#create-update-record-step__section_hh2_sfs_thb}

The Create or Update Record step identifies existing records by searching for matching values in the fields that you select as unique identifiers. For example, you can specify that the short description and priority fields
uniquely identify an incident. When the step finds an incident with a matching short description and priority, it updates the matching record rather than creating a new record.  
Note:  
* If no field is selected as a unique identifier, the step creates a record with the field values provided.
* If more than one record matches the value of the unique identifiers, the step doesn't update any records and displays an error message in the flow execution details.
{#create-update-record-step__ul_ejg_wws_3hb}

## Roles and availability {#create-update-record-step__section_i1f_p1g_jhb}

Available as an Workflow Studio action step. Users with the action_designer role can create a custom action with one or more action steps.

## Inputs {#create-update-record-step__section_all_ztd_lwb}

Provide a value for each input that your action needs. To add dynamic values, you can also drag and drop pills from the Data panel or select them from the pill picker.{#create-update-record-step__inputs-description}

Table
:   Data type: Table Name

    Table in which to create or update a record.

Fields
:   Data type: Template Values

    Field values to set or update for the record. For example, to set the short description to a certain value, select Short description and set the
    desired value.  
    Important:  
    The system does not support updating multiple journal fields such as the additional comments or work notes of a task record.

    If adding the action to a subflow, you can [Create a template value input](qZ9M36zEHgpC4LkTK4YLrw "Enable flow authors to set field values for a record being created or updated. Use a template value input to set different field values each time you add an action or subflow to a flow."). Dynamically set field values can trigger server-side validation rules but cannot trigger UI policies.

Determines uniqueness
:   Data type: True/False

    Option for selecting the field as a unique identifier, which determines when to update or create a record. A record is updated when the incoming field value matches an
    existing record field value. A record is created when the incoming field value does not match an existing record field value. This option appears when the required table name and fields are selected.

If this step fails
    : Data type: Choice  
    Option to continue running the next step or go to error evaluation. This option has no effect on the Step Status output. Choices include:

    * Don't stop the action and go to the next step: Continues running the action at the next step.
    * Go to Error Evaluation: Stops running the action and goes to the Error Evaluation section.
    {#create-update-record-step__ul_s3x_wmb_j1c}

## Outputs {#create-update-record-step__section_tdf_15d_lwb}

These outputs appear in the Data panel. You can use them as inputs elsewhere in your action.{#create-update-record-step__outputs-description}

Record
:   Data type: Record

    Reference to record created or updated.

Table
:   Data type: Table Name

    Table where record was created or updated.

Error Message
:   Data type: String

    Error message produced when the record operation fails.

Status
:   Data type: Choice

    Completion status of the action. The flow execution details page displays one of these values.

    * Created \[created\]: The action created a record.
    * Updated \[updated\]: The action updated a record.
    * Error \[error\]: The action produced an error.
    {#create-update-record-step__ul_wy3_3bz_zmb}

Step Status
:   Data type: Object

    Object data pill containing runtime details about the step. Each step in an action returns a Step Status.

Step Status Code
    : Data type: Integer  
    Integer data pill indicating whether the step produced an error. A step returns a value of 1 when it produces an error for any reason. For example, a step can produce an error if it is missing mandatory input data or returns output in the wrong data type. A step returns a value of 0 when it runs successfully. You cannot customize these codes.

    * Success \[0\]: The step succeeded.
    * Error \[1\]: The step produced an error.
    {#create-update-record-step__ul_obs_2r1_j1c}

Step Status Message
:   Data type: String

String data pill containing the error message produced by the step or system operation. You cannot customize the step status message.  

## Create or update a problem record {#create-update-record-step__example_t5r_r4q_1cc}

This action has two inputs. There is a string input for a description, and a reference input for a User record. The Create or Update Record step uses these inputs to create or update a problem record. The Problem statement and
Opened by fields determine uniqueness. When the input values match, the step performs an update operation instead of a create operation.

