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-enterprise-integration-flatfile.md
+29-37Lines changed: 29 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,23 +32,10 @@ Before you send XML content to a business partner in a business-to-business (B2B
32
32
33
33
1. Under the trigger or action in your logic app, select **New step** > **Add an action**. This example uses the Request trigger, which is named **When a HTTP request is received**, and handles inbound requests from outside the logic app.
34
34
35
-
This example uses the following JSON schema that describes the payload from the inbound request:
36
-
37
-
```json
38
-
{
39
-
"type": "object",
40
-
"properties": {
41
-
"member": {
42
-
"type": "string"
43
-
}
44
-
}
45
-
}
46
-
```
47
-
48
-
```xml
49
-
{
50
-
"member": "<member><firstName>Sophia</firstName><lastName>Owen</lastName><address><street>123456 Any Street</street><city>Any Town</city><state>Any State</state><postalCode>10000</postalCode></address></member>"
51
-
}
35
+
> [!TIP]
36
+
> Providing a JSON schema is optional. If you have a sample payload from the inbound request,
37
+
> select **Use sample payload to generate schema**, enter the sample payload, and select **Done**.
38
+
> The schema appears in the **Request Body JSON Schema** box.
52
39
53
40
1. Under **Choose an action**, enter `flat file`. From the actions list, select this action: **Flat File Encoding**
54
41
@@ -61,51 +48,56 @@ Before you send XML content to a business partner in a business-to-business (B2B
61
48
> [!TIP]
62
49
> If you don't see the **Body** property in the dynamic content list,
63
50
> select **See more** next to the **When a HTTP request is received** section label.
51
+
> You can also directly enter the content to decode in the **Content** box.
64
52
65
-
1. From the **Schema Name** list, select the schema that's in your linked integration account to use for encoding.
53
+
1. From the **Schema Name** list, select the schema that's in your linked integration account to use for encoding, for example:
66
54
67
55

68
56
69
57
> [!NOTE]
70
58
> If no schema appears in the list, your integration account doesn't contain any schema files to use for encoding.
71
59
> Upload the schema that you want to use to your integration account.
72
60
73
-
1. Save your logic app. To test your connector, make a request to the HTTPS endpoint, which appears in the Request trigger's **HTTP POST URL** property, and include XML content in the body of the request.
61
+
1. Save your logic app. To test your connector, make a request to the HTTPS endpoint, which appears in the Request trigger's **HTTP POST URL** property, and include the XML content that you want to encode in the request body.
74
62
75
63
You're now done with setting up your flat file encoding action. In a real world app, you might want to store the encoded data in a line-of-business (LOB) app, such as Salesforce. Or, you can send the encoded data to a trading partner. To send the output from the encoding action to Salesforce or to your trading partner, use the other [connectors available in Azure Logic Apps](../connectors/apis-list.md).
76
64
77
65
## Add flat file decode action
78
66
79
-
1. In the Logic App Designer, add the **When an HTTP request is received** trigger to your logic app.
80
-
81
-
1. Add the flat file decoding action, as follows:
82
-
83
-
a. Select the **plus** sign.
67
+
1. In the [Azure portal](https://portal.azure.com), open your logic app in the Logic App Designer.
84
68
85
-
b. Select the **Add an action** link (appears after you have selected the plus sign).
69
+
1. Under the trigger or action in your logic app, select **New step** > **Add an action**. This example uses the Request trigger, which is named **When a HTTP request is received**, and handles inbound requests from outside the logic app.
86
70
87
-
c. In the search box, enter *Flat* to filter all the actions to the one that you want to use.
71
+
> [!TIP]
72
+
> Providing a JSON schema is optional. If you have a sample payload from the inbound request,
73
+
> select **Use sample payload to generate schema**, enter the sample payload, and select **Done**.
74
+
> The schema appears in the **Request Body JSON Schema** box.
88
75
89
-
d. Select the **Flat File Decoding** option from the list.
76
+
1. Under **Choose an action**, enter `flat file`. From the actions list, select this action: **Flat File Decoding**
90
77
91
-

1. Select the **Content** control. This produces a list of the content from earlier steps that you can use as the content to decode. Notice that the *Body* from the incoming HTTP request is available to be used as the content to decode. You can also enter the content to decode directly into the **Content** control.
80
+
1.Click inside the **Content**box so that the dynamic content list appears. From the list, in the **When a HTTP request is received** section, select the **Body** property, which contains the request body output from the trigger and the content to decode.
94
81
95
-
1. Select the *Body* tag. Notice the body tag is now in the **Content** control.
82
+

96
83
97
-
1. Select the name of the schema that you want to use to decode the content. The following screenshot shows that *OrderFile* is the selected schema name. This schema name had been uploaded into the integration account previously.
84
+
> [!TIP]
85
+
> If you don't see the **Body** property in the dynamic content list,
86
+
> select **See more** next to the **When a HTTP request is received** section label.
87
+
> You can also directly enter the content to decode in the **Content** box.
98
88
99
-

89
+
1. From the **Schema Name** list, select the schema that's in your linked integration account to use for decoding, for example:
100
90
101
-
1. Save your work.
91
+

102
92
103
-

93
+
> [!NOTE]
94
+
> If no schema appears in the list, your integration account doesn't contain any schema files to use for decoding.
95
+
> Upload the schema that you want to use to your integration account.
104
96
105
-
You're now finished with setting up your flat file decoding connector. In a real world app, you might want to store the decoded data in a line-of-business application such as Salesforce. You can easily add an action to send the output of the decoding action to Salesforce.
97
+
1. Save your logic app. To test your connector, make a request to the HTTPS endpoint, which appears in the Request trigger's **HTTP POST URL** property, and include the XML content that you want to decode in the request body.
106
98
107
-
You can now test your connector by making a request to the HTTP endpoint and including the XML content you want to decode in the body of the request.
99
+
You're now done with setting up your flat file decoding action. In a real world app, you might want to store the decoded data in a line-of-business (LOB) app, such as Salesforce. Or, you can send the decoded data to a trading partner. To send the output from the decoding action to Salesforce or to your trading partner, use the other [connectors available in Azure Logic Apps](../connectors/apis-list.md).
108
100
109
101
## Next steps
110
102
111
-
* [Learn about the Enterprise Integration Pack](logic-apps-enterprise-integration-overview.md)
103
+
* Learn more about the [Enterprise Integration Pack](logic-apps-enterprise-integration-overview.md)
0 commit comments