# Setting Up Data Export

## Introduction

This page is designed to help you create an "Export to" interaction for your Avonni Data Table, enabling users to export entire data sets or selected data rows in Excel or CSV file formats. Following the steps outlined in this tutorial, you can implement this powerful feature, enhancing your application's user experience and functionality.

{% embed url="<https://www.youtube.com/watch?t=2s&v=znSimsXDYEs>" %}

## Steps to Create an "Export to" Interaction

### 1. Create an action on the Data Table

Choose whether to [create a row action](/flow/tutorials/components/data-table/creating-row-actions.md) or an action, depending on your preference and specific use case.

### 2. Create the interaction from the interaction panel:&#x20;

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

* **Go to the Interaction Panel**: Look for the interaction options.
* **Choose Target**: Select the action you created in Step 1 from the dropdown list.
* **Set Type to 'Export To'**: This enables the data export feature.
* **Default File Name**: Enter a pre-filled name for the exported file, which users can change later. Select "**Mapped**" from the icon menu for dynamic file naming and choose one of your flow resources. This allows the file name to be generated dynamically based on your selected resource.
* **Optional - Simplify Export**: To speed things up, you can hide the export dialog, limiting user choices on file format and encoding.
* **File Format**: Pick the formats, like Excel or CSV, available for export.
* **Default Encoding**: Choose a standard encoding to ensure the file works well with most software.

## Wrap-Up

Following this straightforward guide, you've added an "Export to" feature to your Avonni Data Table. This enhances usability by enabling users to easily export data for analysis, sharing, or archiving beyond the confines of your application.<br>


---

# 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/setting-up-data-export.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.
