In B2B scenarios, it is quite common for trading partners to collect all the EDI transactions and send them in a batch either on a time basis or based on some transactions in the batch. Invoice and payment transactions, for instance, are often batched and sent out for nightly batch processing. Logic Apps have batch triggers built in. By combining batch triggers with EDI encoding, we will be able to achieve B2B batching scenarios.
Let's assume that ShipAnyWhere sends batches of orders to Contoso for batch processing. The scenario is depicted here: