Export as CSV

Export records as a CSV file


Demos & Screenshots

No screenshots provided yet. Have some video demos or screenshots of this brick in the wild?
Send them over to [email protected]!


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.

Examples


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.

Details

ID @pixiebrix/export/csv
Author @pixiebrix
Version 1.7.0
Created Aug. 17, 2021
Updated May 24, 2022

Related Bricks

  • No related bricks