/
Write as CSV directive
Write as CSV directive
The WRITE-AS-CSV directive converts a record into CSV format.
Syntax
write-as-csv :column
The column
will contain the CSV representation of the record.
Usage Notes
The WRITE-AS-CSV directive converts the entire record into CSV. If the column
already exists, it will overwrite it.
Example
Using this record as an example:
{
"int": 1,
"string": "this, is a string."
}
Applying this directive:
write-as-csv :body
results in this record:
{
"body": "1,\"this, is a string.\",
"int": 1,
"string": "this, is a string."
}
, multiple selections available,
Related content
Parse as CSV directive
Parse as CSV directive
More like this
CSV Parser Transformation
CSV Parser Transformation
More like this
CSV Formatter Transformation
CSV Formatter Transformation
More like this
Write as JSON object directive
Write as JSON object directive
More like this
Write as JSON Map directive
Write as JSON Map directive
More like this
Set Headers directive
Set Headers directive
More like this
Created in 2020 by Google Inc.