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
+69-16Lines changed: 69 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@ title: Perform operations on data
3
3
description: Convert, manage, and manipulate data outputs and formats in Azure Logic Apps
4
4
services: logic-apps
5
5
ms.suite: integration
6
-
ms.reviewer: klam, logicappspm
6
+
ms.reviewer: logicappspm
7
7
ms.topic: article
8
-
ms.date: 09/20/2019
8
+
ms.date: 05/11/2021
9
9
---
10
10
11
11
# Perform data operations in Azure Logic Apps
@@ -18,9 +18,23 @@ This article shows how you can work with data in your logic apps by adding actio
18
18
19
19
If you don't find the action you want here, try browsing the many various [data manipulation functions](../logic-apps/workflow-definition-language-functions-reference.md) that Azure Logic Apps provides.
20
20
21
+
## Prerequisites
22
+
23
+
* An Azure subscription. If you don't have a subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/).
24
+
25
+
* The logic app where you need the operation for working with data
26
+
27
+
If you're new to logic apps, review [What is Azure Logic Apps?](../logic-apps/logic-apps-overview.md) and [Quickstart: Create your first logic app](../logic-apps/quickstart-create-first-logic-app-workflow.md).
28
+
29
+
* A [trigger](../logic-apps/logic-apps-overview.md#logic-app-concepts) as the first step in your logic app
30
+
31
+
Data operations are available only as actions, so before you can use these actions, start your logic app with a trigger and include any other actions required for creating the outputs you want.
32
+
33
+
## Data operation actions
34
+
21
35
These tables summarize the data operations you can use and are organized based on the source data types that the operations work on, but each description appears alphabetically.
22
36
23
-
**Array actions**
37
+
### Array actions
24
38
25
39
These actions help you work with data in arrays.
26
40
@@ -33,7 +47,7 @@ These actions help you work with data in arrays.
33
47
|[**Select**](#select-action)| Create an array from the specified properties for all the items in a different array. |
34
48
|||
35
49
36
-
**JSON actions**
50
+
### JSON actions
37
51
38
52
These actions help you work with data in JavaScript Object Notation (JSON) format.
39
53
@@ -45,18 +59,6 @@ These actions help you work with data in JavaScript Object Notation (JSON) forma
45
59
46
60
To create more complex JSON transformations, see [Perform advanced JSON transformations with Liquid templates](../logic-apps/logic-apps-enterprise-integration-liquid-transform.md).
47
61
48
-
## Prerequisites
49
-
50
-
* An Azure subscription. If you don't have a subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/).
51
-
52
-
* The logic app where you need the operation for working with data
53
-
54
-
If you're new to logic apps, review [What is Azure Logic Apps?](../logic-apps/logic-apps-overview.md) and [Quickstart: Create your first logic app](../logic-apps/quickstart-create-first-logic-app-workflow.md).
55
-
56
-
* A [trigger](../logic-apps/logic-apps-overview.md#logic-app-concepts) as the first step in your logic app
57
-
58
-
Data operations are available only as actions, so before you can use these actions, start your logic app with a trigger and include any other actions required for creating the outputs you want.
59
-
60
62
<aname="compose-action"></a>
61
63
62
64
## Compose action
@@ -270,6 +272,9 @@ To confirm whether the **Create CSV table** action creates the expected results,
270
272
271
273

272
274
275
+
> [!NOTE]
276
+
> If your table is returned with incorrect formatting, see [how to check your table data formatting](#format-table-data).
277
+
273
278
1. Now, manually run your logic app. On the designer toolbar, select **Run**.
274
279
275
280
Based on the email connector you used, here are the results you get:
@@ -427,6 +432,9 @@ To confirm whether the **Create HTML table** action creates the expected results
427
432
> When including the HTML table output in an email action, make sure that you set the **Is HTML** property to **Yes**
428
433
> in the email action's advanced options. That way, the email action correctly formats the HTML table.
429
434
435
+
> [!NOTE]
436
+
> If your table is returned with incorrect formatting, see [how to check your table data formatting](#format-table-data).
437
+
430
438
1. Now, manually run your logic app. On the designer toolbar, select **Run**.
431
439
432
440
Based on the email connector you used, here are the results you get:
@@ -710,6 +718,51 @@ To confirm whether the **Select** action creates the expected results, send your
710
718
711
719

712
720
721
+
## Troubleshooting
722
+
723
+
### Format table data
724
+
725
+
If your [CSV table](#create-csv-table-action) or [HTML table](#create-html-table-action) is returned with incorrect formatting, make sure your input data has line breaks between rows.
726
+
727
+
Incorrect formatting:
728
+
729
+
```text
730
+
Fruit,Number Apples,1 Oranges,2
731
+
```
732
+
733
+
Correct formatting:
734
+
735
+
```text
736
+
Fruit,Number
737
+
Apples,1
738
+
Oranges,2
739
+
```
740
+
741
+
To add line breaks between rows, add one of the following expressions to your table:
742
+
743
+
```text
744
+
replace(body('Create_CSV_table'),'','<br/>')
745
+
```
746
+
747
+
```text
748
+
replace(body('Create_HTML_table'),'','<br/>')
749
+
```
750
+
751
+
For example:
752
+
753
+
```json
754
+
{
755
+
"Send_an_email_": {
756
+
"inputs": {
757
+
"body": {
758
+
"Body": "<p>Results from Create CSV table action:<br/>\n<br/>\n<br/>\n@{replace(body('Create_CSV_table'),'\r\n','<br/>')}</p>",
0 commit comments