Skip to content

Commit 5149ac4

Browse files
committed
Update content and art
1 parent 7f16f29 commit 5149ac4

File tree

10 files changed

+29
-37
lines changed

10 files changed

+29
-37
lines changed

articles/logic-apps/logic-apps-enterprise-integration-flatfile.md

Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,10 @@ Before you send XML content to a business partner in a business-to-business (B2B
3232

3333
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.
3434

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.
5239
5340
1. Under **Choose an action**, enter `flat file`. From the actions list, select this action: **Flat File Encoding**
5441

@@ -61,51 +48,56 @@ Before you send XML content to a business partner in a business-to-business (B2B
6148
> [!TIP]
6249
> If you don't see the **Body** property in the dynamic content list,
6350
> 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.
6452
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:
6654

6755
![Select schema to use for encoding](./media/logic-apps-enterprise-integration-flatfile/select-schema-for-encoding.png)
6856

6957
> [!NOTE]
7058
> If no schema appears in the list, your integration account doesn't contain any schema files to use for encoding.
7159
> Upload the schema that you want to use to your integration account.
7260
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.
7462

7563
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).
7664

7765
## Add flat file decode action
7866

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.
8468

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.
8670

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.
8875
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**
9077

91-
![Screenshot of Flat File Decoding option](media/logic-apps-enterprise-integration-flatfile/flatfile-2.png)
78+
![Select "Flat File Decoding" action](./media/logic-apps-enterprise-integration-flatfile/select-flat-file-decoding.png)
9279

93-
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.
9481

95-
1. Select the *Body* tag. Notice the body tag is now in the **Content** control.
82+
![Select content to decode from dynamic content list](./media/logic-apps-enterprise-integration-flatfile/select-content-to-decode.png)
9683

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.
9888
99-
![Screenshot of Flat File Decoding dialog box](media/logic-apps-enterprise-integration-flatfile/flatfile-decode-1.png)
89+
1. From the **Schema Name** list, select the schema that's in your linked integration account to use for decoding, for example:
10090

101-
1. Save your work.
91+
![Select schema to use for decoding](./media/logic-apps-enterprise-integration-flatfile/select-schema-for-decoding.png)
10292

103-
![Screenshot of Save icon](media/logic-apps-enterprise-integration-flatfile/flatfile-6.png)
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.
10496
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.
10698

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).
108100

109101
## Next steps
110102

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)
34.8 KB
Loading
60.3 KB
Loading
17.1 KB
Loading

0 commit comments

Comments
 (0)