# Export To

## Enable Data Export from Your Data Table

{% hint style="info" %}
This interaction is only available when using the [Avonni Data Table](/flow/flow-components/data-table.md).
{% endhint %}

The Avonni Data Table lets users export their data to an Excel or CSV file. This is helpful for analyzing, sharing, or archiving data outside of Salesforce.

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

## Steps to Create an "Export to" Interaction

### 1️⃣ Add an Action Button

Decide whether you want the export button to be a [**row action**](/flow/tutorials/components/data-table/creating-row-actions.md) (on each row) or a [**header action**](/flow/flow-components/data-table.md#header) (at the top of the table).

{% @arcade/embed flowId="koTSHldm1QynABdHFPnM" url="<https://app.arcade.software/share/koTSHldm1QynABdHFPnM>" %}

### 2️⃣ Create the interaction:&#x20;

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

* In the "Interactions" tab, click "Add" and choose "Row Action Interaction" or "Header Action Interaction," depending on what you chose in step 1.
* Select the name of the action you created.
* Choose "**Export To**" as the interaction type.
* Enter a default file name for the exported file (users can change this later).
* (Optional) If you want to simplify the process, you can hide the export dialog. This prevents users from choosing the file format and encoding.
* Select the file format(s) you want to allow (Excel, CSV, or both).
* Choose the default encoding for the file.

**That's it!** Now your users can easily export data from the Data Table.


---

# 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/component-builder/interactions-panel/export-to.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.
