# Create object step

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-MVtvDWEm9UA5fsJxv7F%2F-MVtxgxamygkLFWsiTAu%2Fstep.png?alt=media\&token=3041a713-a617-44b5-84de-0848cccb08ec)

**Create object** step allows you to create object or to make a link to existing object.

### General parameters

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-MVtvDWEm9UA5fsJxv7F%2F-MVty3cWrRh8T1w5_ufk%2Fstep1.png?alt=media\&token=48ae7bab-1780-4458-a602-da75a56542b5)

* Choose the data structure, whose object we are going to create.
* ID of new object
  * Automatic. The unique ID will be created automatically;
  * Manual. You can compose the expression for the ID> For example, it could be todays date, or a combination of other fields (e.g. `$D.md5('{{field1}}' + '{{field2}}')`)  Remember, that length of ID cannot exceed 32 characters.&#x20;
* Save ID to the field. Often necessary in case of automatic ID generation.
* Generating an event (see [event model](https://readme.directual.com/scenarios/principles-of-scenarios/directual-event-model))&#x20;

{% hint style="info" %}
If there is an *existing object* with such an ID, no new object will be created. The link to the existing object will be saved to the field.
{% endhint %}

### Fields mapping

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-MVtz8Jw5G1Sqi5q3CII%2F-MVtzGDaCP1bnuysJDbV%2Fstep3.png?alt=media\&token=ad4f28fc-f4bc-4e31-8d02-76643065c186)

Fill the fields of new object. Similar to [edit object step](https://readme.directual.com/scenarios/editing-scenarios/action-steps/edit-object-step).
