> For the complete documentation index, see [llms.txt](https://docs.work-relay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.work-relay.com/automations/global-actions-and-action-groups/service-backup-of-types/create-record.md).

# Create Record

**Create Record** Action allows to add a new record of the selected Object.

{% stepper %}
{% step %}

## Add the action

Add an action with the **type**=Action and **Action Type**=Create Record. See more info about creating Actions in the [How to create Action](/automations/global-actions-and-action-groups/basics/working-with-actions.md#how-to-create-an-action) article.
{% endstep %}

{% step %}

## Select the object and fields

Select **the object** which you are going to create record for. Add **fields** you need.

{% hint style="info" %}
All required fields will be added by default and you can't remove them.
{% endhint %}
{% endstep %}

{% step %}

## Fill in field values

Fill in value for each field. You can use Static values, Merge Fields or Formulas to populate values (see more info on Merge Fields and Formulas at [Working with Context objects](/automations/global-actions-and-action-groups/basics/working-with-context-objects.md) and [Working with Functions](/automations/functions-and-formulas/introduction-and-usage.md).
{% endstep %}

{% step %}

## Set a variable name

**Variable Name:** you can set a variable which will be populated with the Id of the created record. It's useful if you need to handle successful result of this action and refer to newly created record—for example, build a link to new record and send it to some user by email.
{% endstep %}

{% step %}

## Configure repeat options

**Repeat**: check if you need to create multiple records. When checked, **two new fields** appear:

* **Number of Iterations** can contain a number or some variable/merge field returning a number of records to create.
* **Iterator Name**: you can set a variable which will be populated with the value of the record creation cycle iterator. It's useful if you need to handle successful result of this action and refer to the index of iterations—for example, paste it in the record name and send email with it with text like **Record "Case # %iterator\_name%" has been created successfully**.
  {% endstep %}

{% step %}

## Configure background execution

**Execute in background:** select it if you need to execute **Create record** action in other context than current user operation. See more info at [How to use Execute in background option](/automations/global-actions-and-action-groups/using-actions/how-to-use-execute-in-background-feature.md).

If check this option, the new field will appear:

* **With gap**: by default it is 0, but can be set as an integer number of minutes. This field specifies interval before action execution (for repeated actions - before each iteration).
  {% endstep %}

{% step %}

## Save the action

Save the action. Now you can call it from SF Process/Flow Builder and other places.
{% endstep %}
{% endstepper %}

![](/files/b071c9fbf29a2f9f3a6be64c4f2691f669d8e34b)
