# Write to Data Table

This is a pre-built action in Avo Assure and comes under @Generic element. This action allows to write back to data table and save the result in dynamic variable.&#x20;

### Syntax

**Input Value:**`<datatable_path>;<row>;<col>;<value>` <br>

{% hint style="warning" %}
**Note:** \
\&#xNAN;*When copying the data table path from the Data Table section, it appears in the format: **avoassure/New Folder/write to data table**. You must remove the **avoassure/** prefix from the path before using it.*
{% endhint %}

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>datatable_path<br>(Required)</td><td>path of the Data Table</td><td></td></tr><tr><td>row<br>(Required)</td><td>Row number where data should be added</td><td></td></tr><tr><td>col<br>(Required)</td><td>Column number where data should be added</td><td></td></tr><tr><td>value<br>(Required)</td><td>The actual value to write into the specified cell.</td><td></td></tr></tbody></table>

**Output Value:**&#x20;

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>Dynamic Variable(Optional);Dynamic Variable(Optional)</td><td>The dynamic variable is optional, as it is used to store the status as either True or False and display it later.</td><td></td></tr></tbody></table>

### Example:&#x20;

**Add user name(John) in 1st column of  Data Table.**

The **Write to Data Table** action takes the value from the Input Value column ( **Data Table/Login Details;4;1;John**) and writes the specified value (John) into the given row (4) and column (1) of the data table (Login Details). The result of the write operation is stored in the {WriteStatus} variable, with the following possible values:

* **True** – if the value is written successfully.
* **False** – if writing fails or an error occurs.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FRPb0JzUogJXNety5VZoS%2Fimage.png?alt=media&#x26;token=f807ee5b-3011-45c2-9b6a-e1c8e18c1a99" alt=""><figcaption></figcaption></figure>
