Dynamic Table Download to CSV File Missing Column Labels

  • Goal: Download data in a Retool table with column headers. The table has dynamic columns.
  • Details: When I use the Retool download function to download data from a dynamic table to csv file, the dynamic column headers are missing in the file.
  • Question: How do I download data from a table with dynamic columns and show the dynamic column headers/ labels in the download file? Is there a table setting to ensure the column headers are included in the file? Is this a bug?

This sounds familiar but to check, is the following selected in your table?
Screenshot 2025-03-17 at 1.35.50 PM

1 Like

Hi @pmartin,

Just wanted to check if @ScottR's suggestion was helpful!

Also if you could share some screenshots of the table in Retool, the download/export query and the CSV file that would help us as well.

Hi @pmartin,

Wanted to circle back to see if @ScottR's suggestion was helpful.

A possible work around out be to pass the dynamic data into a transformer.

It is currently not possible to export with the dynamic columns as the names of these columns are only displayed in the table component and not kept in the table.data property.

You could use a JS Query or transformer to manipulate that data to add in column names using some Javascript. I believe there is a feature request for dynamic column names and I can look to add your +1 to that.