# Get Total Row Count

This is pre-built Action located under the Table/Grid captured from the AUT Element Name, that instructs the Avo Assure to retrieve the total count of the rows present in the table/grid and save the result in the given dynamic variable. &#x20;

### Syntax

**Input Value:** `<header/body>(optional);<left/right>(optional);visible(optional)`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td><p>&#x3C;header/body></p><p>(optional)</p></td><td><strong>&#x3C;header/body></strong><br>This part specifies the section of the table where the row count should be taken.<br>1. <strong>header</strong> → Count rows in the table header <strong>(header;left/right)</strong><br>2. <strong>body</strong> → Count rows in the table body<br><strong>(body;left/right)</strong></td><td></td></tr><tr><td><p>&#x3C;left/right></p><p>(optional)</p></td><td>Indicates the direction in which to begin parsing the table when counting rows.<br>1. <strong>left</strong> → Counts only the rows fixed on the left side.<br>2. <strong>right</strong> → Counts only the rows fixed on the right side</td><td></td></tr><tr><td><p>visible</p><p>(optional)</p></td><td>It is case-sensitive and provides the total row count on the <strong>current page</strong> of the specified grid or table</td><td></td></tr><tr><td>N/A</td><td>If the input is not specified, it will provide the total row count from <strong>all the pages</strong> of the grid or table</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>&#x3C;Dynamic Variable><br>(Optional)</td><td>This variable stores the rows count of grid or table</td><td></td></tr><tr><td>&#x3C;Dynamic Variable><br>(Optional)</td><td>This variable holds the results in <strong>True</strong> and <strong>False</strong></td><td></td></tr></tbody></table>

**Example 1**

**Retrieve and store row count from a specific Grid section**\
\
The **Get Total Row Count** action takes the value from the Input Value column (e.g., **body;left**) and counts the number of rows in the specified section and direction of the table/Grid. The result of the row count operation is stored in the **{RowCount}** variable, while the execution status is stored in the **{Status}** variable, with the following possible values:

* **True** – if the row count is retrieved successfully
* **False** –  if counting fails or an error occurs.

<figure><img src="/files/mbNSswEC8pHSPjotMFnw" alt=""><figcaption></figcaption></figure>

**Example 2**

**Get the total number of rows from the table/Grid (Input value - N/A)**\
\
The **Get Total Row Count** action retrieves the total number of rows present in the set table/Grid. The result is stored in the **{RowCount}** variable, and the action status is saved in the **{Status}** variable with the following possible values:

* **True** – if the row count is retrieved successfully
* **False** –if counting fails or an error occurs.

<figure><img src="/files/stQTDDTL9CfZ0VnnPj1c" alt=""><figcaption></figcaption></figure>

**Example 3**

**Retrieve visible row count from a specific Grid section**\
\
The **Get Total Row Count** action takes the value from the Input Value column (e.g., **visible**) and counts the total number of rows present in the current page of the table/Grid. The result of the row count operation is stored in the **{RowCount}** variable, while the execution status is stored in the **{Status}** variable, with the following possible values:

* **True** – if the row count is retrieved successfully
* **False** – if counting fails or an error occurs.

<figure><img src="/files/QtNhh4EjJIxq1TNuMWoi" 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/web/grid/get-total-row-count.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.
