Store custom metadata information in Integration Accounts artifacts

With Enterprise Integration Pack, it is very much easy to add and retrieve custom metadata information within Enterprise Integration artifacts. For example, you can add metadata information for artifacts such as partners, schema, maps, and agreement. The next steps describe how you can easily add metadata information and retrieve it within the logic apps workflow.

Add Metadata information to Integration Account artifacts

In this walkthrough, we will go step by step to add metadata information in the uploaded schema. You can follow the same steps to add the custom metadata properties to other components such as partners, agreements, or maps.

Add Metadata information to Integration Account artifacts

  • Select the schema artifact, choose Edit as JSON to enter metadata details within the schema

Add Metadata information to Integration Account artifacts

  • Click on OK to add metadata information to the schema

Retrieve metadata from artifacts for logic apps

Logic Apps and Enterprise Integration pack make it very easy to integrate your B2B partners and to build a robust integration framework to connect your different business partners. In the following section, we will go ahead to retrieve the metadata information that we have added within the schema in the preceding section:

  • Create a logic App and select the Blank Logic App template with the HTTP trigger
  • In the next Step, Add an action for Integration Account Artifact Lookup

Retrieve metadata from artifacts for logic apps

  • The next step is to select the Artifact Type as schema and provide Artifact Name as the deployed schema.

Retrieve metadata from artifacts for logic apps

  • To look for metadata information stored within schema, we will just use HTTP post operation. We are using https://requestb.in/ to capture the metadata information. The Logic App code view for metadata lookup will be like the following screenshot:

Retrieve metadata from artifacts for logic apps

  • Now use a postman to trigger the request as explained before and then go to the Overview section of the Logic Apps and verify the details for the Logic App run.

Retrieve metadata from artifacts for logic apps

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset