# Get Value by Index

This is a pre-built action available under the **Captured Dropdown Element** from the **SAP GUI Application**. The functionality of this action in Avo Assure  to get the value of an item in the dropdown list as per its index value and store the item value in dynamic variable.&#x20;

### **Syntax**

**Input Value:** `<index of Item>`&#x20;

| Argument                              | Description                                                                          |
| ------------------------------------- | ------------------------------------------------------------------------------------ |
| <p>\<index of Item><br>(Required)</p> | Specify the position of the item to be retrieved from the dropdown (starting from 0) |

**Output Value:**&#x20;

| Argument                                 | Description                                                     |
| ---------------------------------------- | --------------------------------------------------------------- |
| <p>\<Dynamic Variable><br>(Required)</p> | This dynamic variable holds the retrieved item value            |
| <p>\<Dynamic Variable><br>(optional)</p> | This dynamic variable holds the result as **Ture** or **False** |

**Example**

**Fetches the value of a specific item in a dropdown list.**

The **Get Value By Index** action takes the value from the Input Value column (e.g., **2**) and retrieves the corresponding item from the dropdown list at that index. The result of the retrieval operation is stored in the **{Value}** variable as (**Or Id 4638**)

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F6IxezNcqIcmqiTB2hB5u%2Fimage.png?alt=media&#x26;token=5f0362bd-41c7-46c0-808d-df989d382288" alt=""><figcaption></figcaption></figure>
