# Get value by index

This is a pre-built action available under the **Captured Dropdown Element** from the **Desktop Application**. The functionality of this action in Avo Assure is to fetch the dropdown value using the index value given in the input and save the status in dynamic variable.

### Syntax

**Input Value:** `<Index Value>`&#x20;

| Argument                               | Description                                                                                   |
| -------------------------------------- | --------------------------------------------------------------------------------------------- |
| <p>\<Index Value></p><p>(Required)</p> | <p>Specify the number to be selecte value from the dropdown.</p><p>(Index start with 1st)</p> |

&#x20;**Output Value:**&#x20;

<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>(Required)</p></td><td valign="top">This dynamic variable stores the retrieved value from the dropdown.</td></tr><tr><td valign="top"><p>&#x3C;Dynamic Variable></p><p>(Optional)</p></td><td valign="top">This dynamic variable holds the status of the action as <strong>True</strong> or <strong>False</strong>.</td></tr></tbody></table>

**Example**

**Retrieves the value present at the specified index in the dropdown list**

The **Get value by index** action takes the value from the Input Value column (e.g., **1**) and fetches the item at the given index position from the dropdown list. The result of the fetch operation is stored in the **{Get value}** variable as (e.g., **Last Month**)

<figure><img src="/files/smcS8FrHGk2cbx62BeXv" 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/get-value-by-index.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.
