In this section, we are going to create the ContosoSendOrder Logic App. Since there are no templates available for HTTP receive and AS2 send, we will have to create them ourselves:
- Create a Logic App named ContosoSendOrder
- Navigate to Workflow settings and select the Contoso-SupplyChain integration account
- In Definition, select HTTP request trigger
- Add the Encode to AS2 message connector and select the Contoso-SupplyChain integration account
- Configure the Encode to AS2 message connector as follows:
- Configure the HTTP action to POST the message to ShipAnyWhereOrderService:
- Ensure that the body is binary encoded using the following expression:
base64ToBinary(body('Encode_to_AS2_message')?['AS2Message']?['Content'])
- Post the following X12 message to the ContosoSendOrder Logic App:
ISA*00* *00...