generateCSV (deprecated)
Last updated
Last updated
generateCSV
was deprecated in version 4.28.0 of the JourneyApps Container and replaced with .
source
One of:
Array
Matrix (array of arrays)
options
(Optional)
Object with the following properties:
heading
: Array of column headings
delimiter
: Character to separate columns with.
Defaults to ,
Returns: the generated CSV as a string.
In this case, csv_file
is:
Suppose we have an asset
data model object with (amongst others) name
and cost
as fields, and we want to generate CSV for all assets and their names and costs: