Customize filename for table component CSV exports

Right now downloading table data CSV results in files named as table-data-27.csv, table-data-28.csv, and so on. It would be useful if we were able to customize this with JS with something more descriptive.

2 Likes

Bumping this feature request. Is it possible to change?

Hi @axsuul and @joew!

There isn't currently a way to change the name when downloading the table data CSV directly from the table, but we do have a utils.downloadFile method (that you can run in a JS query) that allows you to specify the name, data source, and file type! Check it out here: https://docs.retool.com/docs/scripting-retool#utilsdownloadfiledata-filename-filetype