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: articles/logic-apps/logic-apps-perform-data-operations.md
+51-19Lines changed: 51 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ To confirm whether the **Compose** action creates the expected results, send you
115
115
116
116
1. In your logic app, add an action that can send you the results from the **Compose** action.
117
117
118
-
1. In that action, click anywhere you want the results to appear. When the dynamic content list opens, under the **Compose** action, select **Output**.
118
+
1. In that action, click anywhere you want the results to appear. When the dynamic content list opens, under the **Compose** action, select **Output**.
119
119
120
120
This example uses the **Send an email** action and includes the **Output** fields in the email's body and subject:
121
121
@@ -131,11 +131,9 @@ To confirm whether the **Compose** action creates the expected results, send you
131
131
132
132
## Create CSV table action
133
133
134
-
To create a comma-separated value (CSV) table that has the properties and values from JavaScript Object Notation (JSON) objects in an array, use the **Create CSV table** action. You can then use
135
-
the resulting table in actions that follow the **Create CSV table** action.
134
+
To create a comma-separated value (CSV) table that has the properties and values from JavaScript Object Notation (JSON) objects in an array, use the **Create CSV table** action. You can then use the resulting table in actions that follow the **Create CSV table** action.
136
135
137
-
If you prefer working in the code view editor, you can copy the example **Create CSV table** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition:
If you prefer working in the code view editor, you can copy the example **Create CSV table** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition: [Data operation code examples - Create CSV table](../logic-apps/logic-apps-data-operations-code-samples.md#create-csv-table-action-example)
139
137
140
138
1. In the [Azure portal](https://portal.azure.com) or Visual Studio, open your logic app in Logic App Designer.
141
139
@@ -165,13 +163,32 @@ If you prefer working in the code view editor, you can copy the example **Create
By default, this action automatically creates the columns based on the array items. To manually create the column headers and values, open the **Columns** list. To provide only custom values, select **Custom**. To provide custom column headers too, in the **Header** property, specify the column name. In the **Key** property, specify the column value.
166
+
1. Save your logic app. On the designer toolbar, select **Save**.
167
+
168
+
By default, the **Columns** property is set to automatically create the columns based on the array items. To specify custom column headers and values, follow these steps:
169
+
170
+
1. Open the **Columns** list, and select **Custom**.
171
+
172
+
1. To specify custom column headers, in the **Header** property, specify the column name.
173
+
174
+
1. To specify custom values, in the **Key** property, specify the column value.
169
175
170
176
> [!TIP]
171
177
> To create user-friendly tokens for the properties in JSON objects so you can select those properties as inputs,
172
178
> use the [Parse JSON](#parse-json-action) before calling the **Create CSV table** action.
173
179
174
-
1. Save your logic app. On the designer toolbar, select **Save**.
180
+
To omit the column headers, switch from designer view to code view, and edit the action's definition to use only the `value` property in the `columns` definition, and omit the `header` property, for example:
181
+
182
+
```json
183
+
"Create_CSV_table": {
184
+
"inputs": {
185
+
"columns": [
186
+
{ "value": "@item()?['Id']" },
187
+
{ "value": "@item()?['Subject']" }
188
+
]
189
+
}
190
+
}
191
+
```
175
192
176
193
For more information about this action in your underlying workflow definition, see the [Table action](../logic-apps/logic-apps-workflow-actions-triggers.md#table-action).
177
194
@@ -213,7 +230,7 @@ If you prefer working in the code view editor, you can copy the example **Create
* To add an action between steps, move your mouse over the connecting arrow so the plus sign (+) appears. Select the plus sign, and then select **Add an action**.
233
+
* To add an action between steps, move your mouse over the connecting arrow so the plus sign (**+**) appears. Select the plus sign, and then select **Add an action**.
217
234
218
235
1. Under **Choose an action**, in the search box, enter `create html table` as your filter. From the actions list, select the **Create HTML table** action.
219
236
@@ -229,13 +246,32 @@ If you prefer working in the code view editor, you can copy the example **Create
229
246
230
247

231
248
232
-
By default, this action automatically creates the columns based on the array items. To manually create the column headers and values, open the **Columns** list. To provide only custom values, select **Custom**. To provide custom column headers too, in the **Header** property, specify the column name. In the **Key** property, specify the column value.
249
+
1. Save your logic app. On the designer toolbar, select **Save**.
250
+
251
+
By default, the **Columns** property is set to automatically create the columns based on the array items. To specify custom column headers and values, follow these steps:
252
+
253
+
1. Open the **Columns** list, and select **Custom**.
254
+
255
+
1. To specify custom column headers, in the **Header** property, specify the column name.
256
+
257
+
1. To specify custom values, in the **Key** property, specify the column value.
233
258
234
259
> [!TIP]
235
260
> To create user-friendly tokens for the properties in JSON objects so you can select those properties as inputs,
236
-
> use the [Parse JSON](#parse-json-action) before calling the **Create HTML table** action.
261
+
> use the [Parse JSON](#parse-json-action) before calling the **Create CSV table** action.
237
262
238
-
1. Save your logic app. On the designer toolbar, select **Save**.
263
+
To omit the column headers, switch from designer view to code view, and edit the action's definition to use only the `value` property in the `columns` definition, and omit the `header` property, for example:
264
+
265
+
```json
266
+
"Create_HTML_table": {
267
+
"inputs": {
268
+
"columns": [
269
+
{ "value": "@item()?['Id']" },
270
+
{ "value": "@item()?['Subject']" }
271
+
]
272
+
}
273
+
}
274
+
```
239
275
240
276
For more information about this action in your underlying workflow definition, see the [Table action](../logic-apps/logic-apps-workflow-actions-triggers.md#table-action).
241
277
@@ -273,8 +309,7 @@ To create a smaller array that has items, which meet specific criteria, from an
273
309
> For actions to use the array output from the **Filter array** action, either those actions must accept arrays as input, or you might
274
310
> have to transform the output array into another compatible format.
275
311
276
-
If you prefer working in the code view editor, you can copy the example **Filter array** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition:
If you prefer working in the code view editor, you can copy the example **Filter array** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition: [Data operation code examples - Filter array](../logic-apps/logic-apps-data-operations-code-samples.md#filter-array-action-example)
278
313
279
314
1. In the [Azure portal](https://portal.azure.com) or Visual Studio, open your logic app in Logic App Designer.
280
315
@@ -340,8 +375,7 @@ To confirm whether **Filter array** action creates the expected results, send yo
340
375
341
376
To create a string that has all the items from an array and separate those items with a specific delimiter character, use the **Join** action. You can then use the string in actions that follow after the **Join** action.
342
377
343
-
If you prefer working in the code view editor, you can copy the example **Join** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition:
If you prefer working in the code view editor, you can copy the example **Join** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition: [Data operation code examples - Join](../logic-apps/logic-apps-data-operations-code-samples.md#join-action-example)
345
379
346
380
1. In the [Azure portal](https://portal.azure.com) or Visual Studio, open your logic app in Logic App Designer.
347
381
@@ -401,8 +435,7 @@ To confirm whether the **Join** action creates the expected results, send yourse
401
435
402
436
To reference or access properties in JavaScript Object Notation (JSON) content, you can create user-friendly fields or tokens for those properties by using the **Parse JSON** action. That way, you can select those properties from the dynamic content list when you specify inputs for your logic app. For this action, you can either provide a JSON schema or generate a JSON schema from your sample JSON content or payload.
403
437
404
-
If you prefer working in the code view editor, you can copy the example **Parse JSON** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition:
If you prefer working in the code view editor, you can copy the example **Parse JSON** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition: [Data operation code examples - Parse JSON](../logic-apps/logic-apps-data-operations-code-samples.md#parse-json-action-example)
406
439
407
440
1. In the [Azure portal](https://portal.azure.com) or Visual Studio, open your logic app in Logic App Designer.
408
441
@@ -478,8 +511,7 @@ To create an array that has JSON objects built from values in an existing array,
478
511
> For actions to use the array output from the **Select** action, either those actions must accept
479
512
> arrays as input, or you might have to transform the output array into another compatible format.
480
513
481
-
If you prefer working in the code view editor, you can copy the example **Select** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition:
If you prefer working in the code view editor, you can copy the example **Select** and **Initialize variable** action definitions from this article into your own logic app's underlying workflow definition: [Data operation code examples - Select](../logic-apps/logic-apps-data-operations-code-samples.md#select-action-example)
483
515
484
516
1. In the [Azure portal](https://portal.azure.com) or Visual Studio, open your logic app in Logic App Designer.
0 commit comments