Hear from Salesforce leaders on how to create and deploy Agentforce agents.
Contact Us 1-800-596-4880

EDI X12 Order Processing Example

Anypoint Partner Manager V1.0 was deprecated in March 2021. Its End of LifeLeaving the Site is March 31, 2022. Support for Anypoint Partner Manager 1.0 continues in accordance with the Product Support and Maintenance TermsLeaving the Site but is not available for new customers or upgrades. For the latest version of Anypoint Partner Manager, contact your Customer Success Manager to determine how you can migrate to the current versionLeaving the Site.

This example shows how to process an X12 850 document, export data to a CSV file, and generate a 997 acknowledgement using the File endpoint, X12 Module, Using MEL with Batch ProcessingLeaving the Site module, and DataWeaveLeaving the Site.

Prerequisites

Before going further, install Anypoint Studio, the EDI Module in Anypoint Studio, and be familiar with the basic concepts of Mule applications.

Concepts

The example application is comprised of two flows and a batch process.

These do the following:

  • ReceiveOrdersFromPartner: Reads in an EDI file, validates it, sends it off for processing, and triggers the sending of an acknowledgment.

  • Process850s: This batch job processes each record and outputs them to a CSV file with the item ID, quantity, and price.

  • SendAck: Send a 997 acknowledgment generated from the first flow.

X12 Order Processing Studio Flow

XML for Example

You can add this project flow to Anypoint Studio to test.