Action Data
CSV Parser
Reads or writes CSV files. In read mode, parses CSV rows into JSON. In write mode, serializes JSON data to CSV format.
Node IDCsvParserAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Mode mode | enum | Yes | Read | Whether to read from or write to a CSV file. |
File Path filePath | file_picker | Yes | — | The path to the CSV file to read from or write to. |
Delimiter delimiter | string | No | , | The character used to separate fields. Defaults to comma. Use "\t" for tab-separated files. |
Has Headers hasHeaders | boolean | No | true | If true, the first row is treated as column headers and rows are returned as objects. If false, rows are returned as arrays (only used in Read mode). |
Data to Write data | textarea | No | — | JSON array of objects or arrays to write as CSV (only used in Write mode). Can be set by a data connection. |
Overwrite Existing overwrite | boolean | No | false | If true, overwrites an existing file when writing (only used in Write mode). |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Triggers the CSV operation. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Result output0 | object | csv_data | In Read mode, contains the parsed CSV data as a JSON array. In Write mode, contains the file path. |