You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+67-9Lines changed: 67 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,37 @@ To configure this action the following fields can be used:
48
48
49
49
#### Config Fields
50
50
51
-
*`Emit Behavior` - this selector configures output behavior of the component. If the option is `Fetch All` - the component emits an array of messages; `Emit Individually` - the component emits a message per row; `Emit Batch` - component will produce a series of message where each message has an array of max length equal to the `Batch Size`;
51
+
*`Emit Behavior` (dropdown, required) - this selector configures output behavior of the component.
52
+
*`Fetch All` - the component emits an array of messages;
53
+
*`Emit Individually` - the component emits a message per row;
54
+
*`Emit Batch` - component will produce a series of message where each message has an array of max length equal to the `Batch Size`;
55
+
*`Skip empty lines` (checkbox, optional) - by default, empty lines are parsed if checked they will be skipped
56
+
*`Comment char` (string, optional) - if specified, skips lines starting with this string
52
57
53
58
#### Input Metadata
54
59
55
60
*`URL` - We will fetch this URL and parse it as CSV file
56
61
*`Contains headers` - if true, the first row of parsed data will be interpreted as field names, false by default.
57
-
*`Delimiter` - The delimiting character. Leave blank to auto-detect from a list of most common delimiters.
58
-
*`Convert Data types` - numeric, date and boolean data will be converted to their type instead of remaining strings, false by default.
62
+
*`Delimiter` - The delimiting character. Leave blank to auto-detect from a list of most common delimiters or provide your own
63
+
<details><summary>Example</summary>
64
+
if you use "$" as Delimiter, this CSV:
65
+
66
+
```
67
+
a$b$c$d
68
+
```
69
+
70
+
can be parsed into this JSON
71
+
72
+
``` json
73
+
{
74
+
"column0": "a",
75
+
"column1": "b",
76
+
"column2": "c",
77
+
"column3": "d"
78
+
}
79
+
```
80
+
</details>
81
+
* `Convert Data types` - numeric data and boolean data will be converted to their type instead of remaining strings, false by default.
59
82
If `Emit Behavior` equals to `Emit Batch` - new field appears: `Batch Size` - max length of array for each message
60
83
61
84
#### Output Metadata
@@ -75,9 +98,29 @@ and attached to the outgoing message.
75
98
76
99
#### Config Fields
77
100
78
-
*`Upload CSV as file to attachments` - If checked store the generated CSV data as an attachment. If unchecked, place the CSV as a string in the outbound message.
79
-
*`Separator` - A single char used to delimit the CSV file. Default to `,`
80
-
*`Column Order` - A string delimited with the separator indicating which columns & in what order the columns should appear in the resulting file. If omitted, the column order in the resulting file will not be deterministic. Columns names will be trimmed (removed spaces in beginning and end of column name, for example: 'col 1,col 2 ,col 3, col 4' => ['col 1', 'col 2', 'col 3', 'col 4'])
101
+
* `Upload CSV as file to attachments` (checkbox, optional) - If checked store the generated CSV data as an attachment. If unchecked, place the CSV as a string in the outbound message.
102
+
* `Separator` (string, optional) - A single char used to delimit the CSV file. Default to "`,`" but you can set any
103
+
<details><summary>Example</summary>
104
+
if you use "$" as Delimiter, this CSV:
105
+
106
+
```
107
+
a$b$c$d
108
+
```
109
+
110
+
can be parsed into this JSON
111
+
112
+
``` json
113
+
{
114
+
"column0": "a",
115
+
"column1": "b",
116
+
"column2": "c",
117
+
"column3": "d"
118
+
}
119
+
```
120
+
</details>
121
+
* `Column Order` (string, optional) - A string delimited with the separator indicating which columns & in what order the columns should appear in the resulting file. If omitted, the column order in the resulting file will not be deterministic. Columns names will be trimmed (removed spaces in beginning and end of column name, for example: 'col 1,col 2 ,col 3, col 4' => ['col 1', 'col 2', 'col 3', 'col 4'])
122
+
* `New line delimiter` (string, optional, defaults to `\r\n`) - The character used to determine newline sequence.
123
+
* `Escape formulae` (checkbox, optional) - If checked, field values that begin with `=`, `+`, `-`, `@`, `\t`, or `\r`, will be prepended with a ` ` ` to defend against injection attacks, because Excel and LibreOffice will automatically parse such cells as formulae
81
124
82
125
#### Input Metadata
83
126
@@ -103,9 +146,24 @@ This action will convert an incoming array into a CSV file
103
146
104
147
#### Config Fields
105
148
106
-
*`Upload CSV as file to attachments` - If checked store the generated CSV data as an attachment. If unchecked, place the CSV as a string in the outbound message.
107
-
*`Separator` - A single char used to delimit the CSV file. Default to `,`
108
-
*`Column Order` - A string delimited with the separator indicating which columns & in what order the columns should appear in the resulting file. If omitted, the column order in the resulting file will not be deterministic.
149
+
* `Upload CSV as file to attachments` (checkbox, optional) - If checked store the generated CSV data as an attachment. If unchecked, place the CSV as a string in the outbound message.
150
+
* `Separator` (string, optional) - A single char used to delimit the CSV file. Default to "`,`" but you can set any
151
+
<details><summary>Example </summary>
152
+
default:
153
+
154
+
```
155
+
a,b,c,d
156
+
```
157
+
158
+
using "`;`" as separator:
159
+
160
+
```
161
+
a;b;c;d
162
+
```
163
+
</details>
164
+
* `Column Order` (string, optional) - A string delimited with the separator indicating which columns & in what order the columns should appear in the resulting file. If omitted, the column order in the resulting file will not be deterministic. Columns names will be trimmed (removed spaces in beginning and end of column name, for example: 'col 1,col 2 ,col 3, col 4' => ['col 1', 'col 2', 'col 3', 'col 4'])
165
+
* `New line delimiter` (string, optional, defaults to `\r\n`) - The character used to determine newline sequence.
166
+
* `Escape formulae` (checkbox, optional) - If checked, field values that begin with `=`, `+`, `-`, `@`, `\t`, or `\r`, will be prepended with a ` ` ` to defend against injection attacks, because Excel and LibreOffice will automatically parse such cells as formulae
"description": "By default, empty lines are parsed if checked they will be skipped"
34
+
}
35
+
},
36
+
"comments": {
37
+
"label": "Comment char",
38
+
"order": 60,
39
+
"required": false,
40
+
"viewClass": "TextFieldView",
41
+
"help": {
42
+
"description": "If specified, skips lines starting with this string"
43
+
}
25
44
}
26
45
},
27
46
"dynamicMetadata": true
@@ -37,20 +56,42 @@
37
56
"uploadToAttachment": {
38
57
"label": "Upload CSV as file to attachments",
39
58
"viewClass": "CheckBoxView",
59
+
"required": false,
60
+
"order": 80,
40
61
"description": "If checked store the generated CSV data as an attachment",
41
62
"prompt": "Include headers? Default Yes."
42
63
},
43
64
"separator": {
44
65
"viewClass": "TextFieldView",
45
66
"required": false,
67
+
"order": 70,
46
68
"label": "Separator",
47
69
"note": "A single char used to delimit the CSV file. Default to ','"
48
70
},
49
71
"order": {
50
72
"viewClass": "TextFieldView",
51
73
"required": false,
74
+
"order": 60,
52
75
"label": "Column Order",
53
76
"note": "A string delimited with the separator (use same as above) indicating which columns & in what order the columns should appear in the resulting file. If omitted, the column order in the resulting file will not be deterministic."
77
+
},
78
+
"newline": {
79
+
"label": "New line delimiter",
80
+
"order": 50,
81
+
"required": false,
82
+
"viewClass": "TextFieldView",
83
+
"help": {
84
+
"description": "The character used to determine newline sequence. defaults to <b style='background-color:LightGray;'>\\r\\n</b>"
85
+
}
86
+
},
87
+
"escapeFormulae": {
88
+
"label": "Escape formulae",
89
+
"order": 40,
90
+
"required": false,
91
+
"viewClass": "CheckBoxView",
92
+
"help": {
93
+
"description": "If selected, field values that begin with <b style='background-color:LightGray;'>=</b>, <b style='background-color:LightGray;'>+</b>, <b style='background-color:LightGray;'>-</b>, <b style='background-color:LightGray;'>@</b>, <b style='background-color:LightGray;'>\\t</b>, or <b style='background-color:LightGray;'>\\r</b>, will be prepended with a <b style='background-color:LightGray;'>'</b> to defend against injection attacks, because Excel and LibreOffice will automatically parse such cells as formula"
94
+
}
54
95
}
55
96
},
56
97
"dynamicMetadata": true
@@ -66,20 +107,42 @@
66
107
"uploadToAttachment": {
67
108
"label": "Upload CSV as file to attachments",
68
109
"viewClass": "CheckBoxView",
110
+
"required": false,
111
+
"order": 80,
69
112
"description": "If checked store the generated CSV data as an attachment",
70
113
"prompt": "Include headers? Default Yes."
71
114
},
72
115
"separator": {
73
116
"viewClass": "TextFieldView",
74
117
"required": false,
118
+
"order": 70,
75
119
"label": "Separator",
76
120
"note": "A single char used to delimit the CSV file. Default to ','"
77
121
},
78
122
"order": {
79
123
"viewClass": "TextFieldView",
80
124
"required": false,
125
+
"order": 60,
81
126
"label": "Column Order",
82
127
"note": "A string delimited with the separator (use same as above) indicating which columns & in what order the columns should appear in the resulting file. If omitted, the column order in the resulting file will not be deterministic."
128
+
},
129
+
"newline": {
130
+
"label": "New line delimiter",
131
+
"order": 50,
132
+
"required": false,
133
+
"viewClass": "TextFieldView",
134
+
"help": {
135
+
"description": "The character used to determine newline sequence. defaults to <b style='background-color:LightGray;'>\\r\\n</b>"
136
+
}
137
+
},
138
+
"escapeFormulae": {
139
+
"label": "Escape formulae",
140
+
"order": 40,
141
+
"required": false,
142
+
"viewClass": "CheckBoxView",
143
+
"help": {
144
+
"description": "If selected, field values that begin with <b style='background-color:LightGray;'>=</b>, <b style='background-color:LightGray;'>+</b>, <b style='background-color:LightGray;'>-</b>, <b style='background-color:LightGray;'>@</b>, <b style='background-color:LightGray;'>\\t</b>, or <b style='background-color:LightGray;'>\\r</b>, will be prepended with a <b style='background-color:LightGray;'>'</b> to defend against injection attacks, because Excel and LibreOffice will automatically parse such cells as formula"
0 commit comments