|
1 | 1 | ---
|
2 | 2 | title: Encode or decode flat files
|
3 |
| -description: Encode or decode flat files for enterprise integration with Azure Logic Apps and Enterprise Integration Pack |
| 3 | +description: Encode or decode flat files for enterprise integration in Azure Logic Apps by using the Enterprise Integration Pack |
4 | 4 | services: logic-apps
|
5 | 5 | ms.suite: integration
|
6 | 6 | author: divyaswarnkar
|
7 | 7 | ms.author: divswa
|
8 | 8 | ms.reviewer: jonfan, estfan, logicappspm
|
9 | 9 | ms.topic: article
|
10 |
| -ms.date: 07/08/2016 |
| 10 | +ms.date: 04/28/2020 |
11 | 11 | ---
|
12 | 12 |
|
13 |
| -# Encode or decode flat files with Azure Logic Apps and Enterprise Integration Pack |
| 13 | +# Encode and decode flat files in Azure Logic Apps by using the Enterprise Integration Pack |
14 | 14 |
|
15 |
| -You may want to encode XML content before you send it to a business partner in a business-to-business (B2B) scenario. In a logic app, you can use the flat file encoding connector to do this. The logic app that you create can get its XML content from a variety of sources, including from an HTTP request trigger, from another application, or even from one of the many [connectors](../connectors/apis-list.md). For more information about logic apps, see the [logic apps documentation](logic-apps-overview.md "Learn more about Logic apps"). |
| 15 | +Before you send XML content to a business partner in a business-to-business (B2B) scenario, you might want to encode that content first. By building a logic app, you can use the **Flat File** connector to encode and decode flat files. Your logic app can get this XML content from various sources, such as an HTTP request trigger, another app, or other [connectors supported by Azure Logic Apps](../connectors/apis-list.md). For more information, see [What is Azure Logic Apps](logic-apps-overview.md)? |
16 | 16 |
|
17 |
| -## Create the flat file encoding connector |
18 |
| -Follow these steps to add a flat file encoding connector to your logic app. |
| 17 | +## Prerequisites |
| 18 | + |
| 19 | +* An Azure subscription. If you don't have an Azure subscription yet, [sign up for a free Azure account](https://azure.microsoft.com/free/). |
| 20 | + |
| 21 | +* The logic app where you want to use the **Flat File** connector and a trigger that starts your logic app's workflow. The **Flat File** connector provides only actions, not triggers. You can use either the trigger or another action to feed the XML content into your logic app for encoding or decoding. If you're new to logic apps, review [Quickstart: Create your first logic app](../logic-apps/quickstart-create-first-logic-app-workflow.md). |
| 22 | + |
| 23 | +* An [integration account](../logic-apps/logic-apps-enterprise-integration-create-integration-account.md) that's associated with your Azure subscription and linked to the logic app where you plan to use the **Flat File** connector. Both your logic app and integration account must exist in the same location or Azure region. |
| 24 | + |
| 25 | +* A flat file [schema]() that you use for encoding or decoding the XML content |
| 26 | + |
| 27 | +* At least two [trading partners](../logic-apps/logic-apps-enterprise-integration-partners.md) that you've already defined in your integration account. |
| 28 | + |
| 29 | +## Add flat file encode action |
19 | 30 |
|
20 | 31 | 1. Create a logic app and [link it to your integration account](logic-apps-enterprise-integration-accounts.md "Learn to link an integration account to a Logic app"). This account contains the schema you will use to encode the XML data.
|
21 | 32 |
|
@@ -72,22 +83,22 @@ You can now test your connector by making a request to the HTTP endpoint, and in
|
72 | 83 |
|
73 | 84 | 
|
74 | 85 |
|
75 |
| -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. |
| 86 | +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. |
76 | 87 |
|
77 | 88 | 1. Select the *Body* tag. Notice the body tag is now in the **Content** control.
|
78 | 89 |
|
79 | 90 | 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.
|
80 | 91 |
|
81 | 92 | 
|
82 | 93 |
|
83 |
| -1. Save your work. |
| 94 | +1. Save your work. |
84 | 95 |
|
85 | 96 | 
|
86 | 97 |
|
87 |
| -At this point, you are finished setting up your flat file decoding connector. In a real world application, you may 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. |
| 98 | +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. |
88 | 99 |
|
89 | 100 | 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.
|
90 | 101 |
|
91 | 102 | ## Next steps
|
92 |
| -* [Learn more about the Enterprise Integration Pack](logic-apps-enterprise-integration-overview.md "Learn about Enterprise Integration Pack"). |
93 | 103 |
|
| 104 | +* [Learn about the Enterprise Integration Pack](logic-apps-enterprise-integration-overview.md) |
0 commit comments