# Edit object step

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-MVtnk0eOh4hOHnez11D%2F-MVtt1Lk8yuhDroAeilo%2Fstep.png?alt=media\&token=e9a4b69c-8af8-418b-ab73-9f8bc7015c74)

**Edit object** step allows you to edit current object and objects connected with it via links.

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-MVtnk0eOh4hOHnez11D%2F-MVtsj-isTsaHl7yfdXI%2Fedit_step.png?alt=media\&token=fe241a45-ac29-4eec-a311-c223472f3d22)

{% hint style="info" %}
Remember! You cannot combine **serial actions** with the same field in a single step. You have to create step-by-step chain. It means if you want to increase {{field}} to 5, and then divide it by 10, you should create two separate steps for {{field}} + 5, and then in the second step {{field}} / 10 (don't forget to turn on [evaluating the expression](https://readme.directual.com/template-system/evaluating-as-js-expression) for such calculations).
{% endhint %}

## Basic step settings

There can be several fields editing, each includes:

* The field to edit ([select field](https://readme.directual.com/template-system/basics-of-template-system#inputs-for-templating));
* The value ([expression](https://readme.directual.com/template-system/basics-of-template-system#inputs-for-templating)) – here you can apply JS-interpreter.

## Advanced step settings

### Single-thread execution (lock)

The way to avoid collisions while writing to the same field.&#x20;

* Lock key (field type of link like `{{userID}}` or `{{ContextVar.userID}}`);
* Time of lock in milliseconds;
* Global lock option (cross-scenario setting)

### Generation of an event

Following the [event model](https://readme.directual.com/scenarios/principles-of-scenarios/directual-event-model), editing an object can trigger other scenarios. By default, this step edits an object in "silence mode", but you can turn on the event generation.&#x20;
