Add a button to a Data Table in a screen flow that downloads the rows as an Excel or CSV file.

Add an export button to an Avonni Data Table in a screen flow, so users download the rows as an Excel or CSV file. For Salesforce admins who want exports without a developer.
Hello everyone, welcome back to our channel. Today I'm going to show you how to add a powerful export to action button using the Avonni Data Table. So this action button will allow users to export data in Excel or in CSV format, all data or maybe selected rows. So let's get started. So we have this data table here, and what I'm going to do is I want to add an action button at the top, here on the header, to let users export data from the data table, so export data in Excel or CSV. So it can be from the header using the action button, or if you want, you can also, specifically to your needs, add this action on row action. Let me show you how to do that now in Flow Builder.
In Flow Builder, let's open this and open the Component Builder on the data table. Here I want to add this action button on the header, so you expand the header section, action, and we are going to add an action button. Let's name it Export, and let's add an icon just for the fun. Don't know, the icon like this one. Okay, now I have my export button. I just created the action for the export button. Next step will be to create the interaction to make this export button functional. Let's do that.
To make it functional, you need to go on this tab, the Interaction tab, and here, this is where you can create your interactions. I want to create an interaction on header action. Add header action, you're selecting the target name, that's the export button I just created before, and the type, what would be the type of interaction? We have a specific type for this, it's the Export To interaction. Here you can specify a default file name, let's see. If you want, you can also map this with a variable, so if you want to have default file name being a variable or more dynamic, that's how to do that. You have various options if you want to hide the export dialog, or if you want to only make specific file formats available. The same for the default encoding type, you have options here. Then save. We jump, we can close and save this flow. Now let's see the result.
Okay, let's get back to Salesforce. I just saved my flow, so let's reload the page, and here I will add the export button. So I have the export button just created. So if you're selecting specific data and hit the export button, you will have the export modal box to be able to export the data, the selected data, in Excel or CSV. For example, Excel, export, and voila, my data is exported. The same way, if you want, you can select all, export, and it will download all the selected data from the data table. So that's really basically and easily how you can create an export action button to export data, specific data, from the data table in Excel or CSV file format. Let me know if you have any questions or comments, just let me know, and thank you for watching this video. Bye.
In the Avonni Data Table Component Builder, add a header action button named Export, then in the Interaction tab create a header action interaction on it with the type Export To.
Yes, the Export To interaction has a default file name, which you can type or map to a variable to make it dynamic.
Yes, select the rows and click Export: the export dialog exports the selected data in Excel or CSV. Select all to export everything.
Browse the whole library, filtered by where it runs and what you want to build.
All video tutorials