Export as CSV

Export records as a CSV file

by @pixiebrix

How to Use

The Export as CSV brick converts an array of objects into a CSV file which downloads to your local machine. After adding the brick, configure the ‘filename’ field to what you want the file to be named (without ‘.csv’). Next add the data you want to export to the ‘data’ field. This can either be done with a preformed array of objects passed in as a variable, or by setting the field type to ‘array items’. If you wish to use this with old versions of Excel then you may need to set the ‘useBOM’ to true.


Inputs

Name Required Type Description
data array An array of rows/records
useBOM boolean True to include a byte-order-mark (BOM), which is required for old versions of Microsoft Excel
filename string The exported filename, ".csv" will be appended to the value provided

Outputs

Name Required Type Description
No outputs for this brick defined.

Related Tags