# Passing multiple record IDs to another flow

## Use Case

With the [**Avonni Data Table**](/flow/flow-components/data-table.md) and the [**Open Flow Dialog**](/flow/component-builder/interactions-panel/open-flow-dialog.md) interaction, you can select multiple records and send their IDs as input variables to another flow

## Guided Steps

{% stepper %}
{% step %}

### Add an Action to the Data Table

Actions let you trigger interactions directly from the Data Table. You can add them in several ways:

* **Header action** – button in the header bar.
* **Row action** – button tied to each record.
* **Button/Button Icon column** – custom clickable elements.

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

After adding one, your Data Table will include a new action button
{% endstep %}

{% step %}

### Configure the Interaction for the Action Button

Now let’s make the button actually do something.

1. **Open the Interaction Tab**
   * In the Component Builder, go to the **Interaction** tab of your Data Table.
2. **Add a Header Action**
   * Click **Add Header Action** to create a new interaction.
3. **Link to Your Action**
   * In the **Target Name** field, select the action button you created earlier.
4. **Choose the Interaction Type**
   * In the **Type** field, select **Open Flow Dialog**.
   * This ensures that pressing the button will open a flow dialog.
5. **Select the Flow**
   * In the **Flow API Name** field, choose the flow you want to trigger.
6. **Pass Input Variables**
   * In the **Input Variable** section, click **Add Item**.
   * **Name**: Enter a unique name for your input variable.
   * **Value**: Select **Selected Record Ids** to pass the IDs from the Data Table.
   * **Type**: Choose **Text**.
   * **Allow multiple values**: Enable this option to pass multiple record IDs at once.
7. **Save**
   * Click **Done** to save your interaction

<figure><img src="/files/aWeNT6R9nfPBq4zWxCGV" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="info" %}
You should ensure the flow you're triggering is designed to accept and correctly process the passed record IDs by creating a text variable with the same input variable name.
{% endhint %}


---

# 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.avonnicomponents.com/flow/tutorials/components/data-table/tips-and-tricks/passing-multiple-record-ids-to-another-flow.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.
