In this blog, we will see how to Integrate MuleSoft with ServiceNow and Salesforce Service Cloud. The objective of this integration is to process an incoming X12 EDI 856 file in MuleSoft. If the file contains any errors or exceptions, then the incident should be generated in ServiceNow, and a case should be generated in the Salesforce Service Cloud. To achieve the objective, first, we will create three different mule flows. One for processing X12 EDI 856 file, one for Integration with ServiceNow, and another one for Salesforce Service Cloud. In the end, we will structure these flows to achieve the defined objective. But before we go into details, let us learn a little bit about ASN EDI 856 file.
The EDI 856 transaction is commonly called the EDI Advance Ship Notice or EDI ASN. It is used to deliver electronic communication regarding the shipment contents to another trading partner. It is sent prior to the shipment arriving at the other trading partner’s facility. The 856-ship manifest transaction is usually used by the retail, manufacturing, and automotive industries in response to EDI 830, EDI 850, or EDI 862 transactions. Furthermore, to detailing the contents of a shipment, the EDI 856 transaction also contains order information, types of packaging used, descriptions of products, carrier information, and much more. An EDI ASN may deliver information at various levels, including:
MuleSoft provides X12 connector to support reading, validating, and writing X12 messages. For every trading partner, you can configure message validation options and configure schemas according to your trading partner's implementation convention.
The connector can generate 997 or 999 acknowledgments based on compliance with the partner configuration.
This will convert X12 EDI 856 file to JSON
MuleSoft provides ServiceNow connector. The ServiceNow connector lets businesses to sync ServiceNow data and extend IT service management (ITSM) abilities to SaaS and on-premises applications like Salesforce, SAP, Dynamics, and Workday, supporting with application integration, data migration and replication, and consolidation.
Anypoint Connector for Salesforce lets you connect to the Salesforce Bulk API, REST API, SOAP API, and Streaming API, depending on the process you configure
Considering the scenario mentioned at the beginning of this blog, we will now structure the above integration flows to achieve the objective.
Follow the steps below