> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/export-to.md).

# Export To

The Export To interaction exports a data table's or pivot table's records to a downloadable file.

## Overview

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

The Avonni Data Table and Pivot Table let 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="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2Fgit-blob-8387437089313c7f40c9f1fead76f2a76f2cf9f9%2F2023-04-27_15-36-18.png?alt=media" alt=""><figcaption></figcaption></figure>

## Configuration

### 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 url="<https://app.arcade.software/share/koTSHldm1QynABdHFPnM>" flowId="koTSHldm1QynABdHFPnM" %}

### 2️⃣ Create the interaction:

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2Fgit-blob-e3be5fba7e756cf29842639dd80bfacc726f111e%2F2023-04-26_20-53-22.png?alt=media" 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.
* Choose the default export view (formatted report or details only).

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/export-to.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
