# Get Count Of Rows

This is a pre-built action available under the **Captured Grid Element** from the **SAP GUI Application**. The functionality of this action in Avo Assure is to retrieve the total number of rows present in the Grid and save the result in the dynamic variable.

### &#x20;Syntax&#x20;

&#x20;**Input Value:** `N/A`

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Output Value**&#x20;

| Argument                      | Description                                                      |
| ----------------------------- | ---------------------------------------------------------------- |
| \<Dynamic Variable>(Required) | This variable holds the fetched row count                        |
| \<Dynamic Variable>(Optional) | This dynamic variable holds the status as **True** or **False**. |

**Example**&#x20;

**Retrieves the total number of rows from a Grid View element in the SAP GUI application.**&#x20;

The **GetCountOfRows** action requires no input value and automatically fetches the number of rows in the captured grid. The total row count **(e.g., 50)** is stored in the **{Row Count}** variable.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F7zGuUdxJfkMpiMjv0rCn%2Fimage.png?alt=media&#x26;token=91845e0d-d938-4e53-bb95-adca78401494" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F4Rk0kugHP07a3UPWek3P%2Fimage.png?alt=media&#x26;token=4053e992-7a35-4eea-8d65-0333f3c39685" alt=""><figcaption></figcaption></figure>
