# Get all values

This is a pre-built Action located under the Captured Dropdown Element from the Desktop Application. The functionality of this Action in Avo Assure is to fetch all the values available in the dropdown. The extracted values are stored in the given dynamic variable for further use during test execution.

## Syntax

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

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

**Output Value**: `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

<table><thead><tr><th valign="top">Argument </th><th valign="top">Description </th></tr></thead><tbody><tr><td valign="top"><p>&#x3C;Dynamic Variable></p><p>(Optional)</p></td><td valign="top">This dynamic variable stores the retrieved values from the dropdown.</td></tr><tr><td valign="top"><p>&#x3C;Dynamic Variable></p><p>(Optional)</p></td><td valign="top">This dynamic variable stores the status as <strong>True</strong> or <strong>False</strong>.</td></tr></tbody></table>

### Example: Retrieving All Selectable Values from a Dropdown or List

In this example, we are explaining how to fetch all available options from a dropdown or list component.

* **Action**: Get all values
* **Input Value**: N/A
  * This action does not require any value in the **Input Value** column. It automatically identifies the captured list or dropdown element.
* **Output Value**: {Values}
  * The retrieved values (e.g., All, Last Month. Last 3 Month, Last 6 Month) are stores in this **{Values}** dynamic variable.
  * If a second output variable is defined, it stores the action status with the following possible values:
    * **True**: If the values are retrieved successfully.
    * **False**: If the values are not retrieved successfully.
* **Logical Explanation**: The **Get all values** action identifies the dropdown or list element and retrieves every selectable option available within it. These retrieved values are stored (e.g., All, Last Month. Last 3 Month, Last 6 Month) in the **{Values}** variable.

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

#### **Additional Information**

After the action stores the values in the **{Values}** variable, you can use individual values in the next scenario by using array format.\
For example, **{Values\[1]}** returns **Last Month**.

This allows you to dynamically reuse dropdown options when working with other actions, such as entering a specific value in a text field or selecting a filter.

You can fetch values using array format, such as **{Values\[0]}**, **{Values\[1]}**, and so on, where each index refers to a specific item in the dropdown list.

<figure><img src="/files/mQRk1S2nSSyV3pFEApy0" 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/desktop/dropdown-1/get-all-values.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.
