# Get Count Of Columns

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 columns present in the Grid and save the result in the dynamic variable.

### Syntax&#x20;

**Input Value:** `N/A`

| Argument | Description     |
| -------- | --------------- |
| N/A      | No input needed |

**Output Value**&#x20;

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

**Example**&#x20;

**Retrieves the total number of columns from the captured (SAP Grid) grid**

The **GetCountOfColumns** action does not require any value from the Input Value column. It automatically fetches the number of columns **(e.g., 10)** from the captured grid **(SAP Grid)**. The retrieved column count is stored in the **{Column Count}** variable.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FgSpX88YckuT4O56pXucH%2Fimage.png?alt=media&#x26;token=cc7f1755-4157-494d-b8c1-ace07eb8fcaa" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FaIJkNxBmgMzAi8yWv0hU%2Fimage.png?alt=media&#x26;token=6b3f562f-4e7f-4f83-a7ce-760fb462e639" alt=""><figcaption></figcaption></figure>
