> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/generic/data-table/write-to-data-table.md).

# 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.

### 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:**

<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:

**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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
