# Get Multiple Values by Indexes

This is a pre-built Action located under the captured list element. The functionality of this Action in Avo Assure is to fetch multiple values from the list based on the index numbers provided in the input value. The result is stored in a dynamic variable for further use during test execution.

## **Syntax**

**Input Value**: `<Index1>;<Index2>;...etc.`

| Argument                                          | Description                                                                        |
| ------------------------------------------------- | ---------------------------------------------------------------------------------- |
| <p>\<Index1>; \<Index2>;...etc.<br>(Required)</p> | Provide the index of the list of items from which you want to retrieve the values. |

{% hint style="info" %}
Note: In the above syntax, the Index always starts from 0.
{% endhint %}

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

| Argument                                 | Description                                                      |
| ---------------------------------------- | ---------------------------------------------------------------- |
| <p>\<Dynamic Variable><br>(Required)</p> | This dynamic variable stores the retrieved values from the list. |
| <p>\<Dynamic Variable><br>(Optional)</p> | This dynamic variable stores the status as **True** or **False** |

### Example: Retrieving Multiple Values from a List Using Index Positions&#x20;

In this example, we explain how to fetch multiple values from a captured list element based on the specified index positions.&#x20;

* **Action**: Get Multiple Values by Indexes&#x20;
* **Input Value**: 2;3&#x20;
  * The first argument (**2**) specifies the index position of the first value to be retrieved.&#x20;
  * The second argument (**3**) specifies the index position of the next value to be retrieved.&#x20;
* **Output Value**: {Values}&#x20;
  * The retrieved list values are (e.g., All, Last Month) stored in the **{Values}** dynamic variable.&#x20;
  * The execution status is stored in the **{Status}** dynamic variable with the following possible values:&#x20;
    * **True**: If all values are retrieved successfully.&#x20;
    * **False**: If all values are not retrieved successfully.&#x20;
* **Logical Explanation**: The **Get Multiple Values by Indexes** action takes the value from the **Input Value** column (**2;3**) and retrieves the corresponding values from the list at index positions 2 and 3. The fetched values (All, Last Month) are stored in the **{Values}** variable.

<figure><img src="/files/0XK8eNMAmUyyxwJC00BT" 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/web/list/get-multiple-values-by-indexes.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.
