Skip to main content
Version: 2.0.0

Generate file

This action allows you to construct files on the fly and let users download it. Presently, the only file type supported is CSV.


TypeType of file to be generated
File nameName of the file to be generated
DataData that will be used to construct the file. Its format will depend on the file type, as specified in the following section

Data format for CSV

For CSV file type, the data field should be supplied with an array objects. ToolJet assumes that the keys of each of these objects are the same and that they represent the column headers of the csv file.


{ name: 'John', email: '[email protected]' },
{ name: 'Sarah', email: '[email protected]' },

Supplying the above snippet will generate a csv file which looks like this: