# 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="/files/Tf5uOH89trsX4kJhvfiX" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/generic/data-table/write-to-data-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
