Documentation Index

Fetch the complete documentation index at: https://docs.staedean.com/llms.txt

Use this file to discover all available pages before exploring further.

EDI contract between two companies

Prev Next

This walkthrough provides an overview of how to establish an EDI Studio connection between two companies.

Prerequisites

Template

Description

Type

Company

TI_EDI_1.PO.OUT

STAEDEAN Template: Export Purchase Order

Outbound

CRONUS Sales

TI_EDI_2.SO.IN

STAEDEAN Template: Import Sales Order

Inbound

CRONUS International Ltd.

TI_EDI_3.CONF.OUT

STAEDEAN Template: Export Order Confirmation

Outbound

CRONUS International Ltd.

TI_EDI_4.CONF.IN

STAEDEAN Template: Import Order Confirmation

Inbound

CRONUS Sales

TI_EDI_5.SHIP.OUT

STAEDEAN Template: Export Posted Sales Shipment

Outbound

CRONUS International Ltd.

TI_EDI_6.SHIP.IN

STAEDEAN Template: Import Shipment

Inbound

CRONUS Sales

TI_EDI_7.INV.OUT

STAEDEAN Template: Export Posted Sales Invoice

Outbound

CRONUS International Ltd.

TI_EDI_8.INV.IN

STAEDEAN Template: Import Invoice

Inbound

CRONUS Sales

  1. You can create two companies for demonstration purposes. The templates for EDI Studio support an intercompany integration between a Sales Company (CRONUS Sales) and an HQ Company (CRONUS International Ltd.).

  2. Import the EDI Studio configuration packages from the TI.Templates folder in the software package into the respective companies as noted in the overview.

  3. Make sure the user has the necessary read and write permissions to the folder used for the File Writer and File Reader endpoints.

  4. For demonstration purposes, certain custom connectors are available. Import the TI_EDI_Demo.fob objects containing custom codeunits from the Sample.Files folder in the software release package. These objects are NOT part of the standard installation and are strictly for demonstration purposes. For more information on how to create custom connectors, refer to the Software Development Kit (SDK.pdf) in the software release package.

  5. Create a new vendor for the HQ Company.

  6. Create a new customer for the Sales Company.

An EDI Studio contract establishes between these two companies as shown in the image below:

EDI Steps

Purchase order export template

Story

This connection uses the following pipeline elements:

  • The Record Change Event links to an internal document with only one field: the Status field of the Purchase Header table. The filter sets to Released, so when a purchase order releases, the pipeline triggers.

  • The Splitter activity creates one message for each posted purchase order. The File Writer endpoint exports the XML files.

  • Two documents support this connection: TI_EDI1_PO.TRIG for triggering (the Record Change Event detects modifications based on the table and field structure in this document), and TI_EDI1_PO.INT to generate a filtered set of data for the XML Generator and Splitter.

EDI Templ1 Pipeline

Setup

  1. Select the CRONUS Sales company.

  2. Import the EDI Studio Connection-TI_EDI_1.PO.OUT.zip configuration package.

  3. Open the TI_EDI_1.PO.OUT connection.

  4. Select Edit on RECORDCHANGEEVENT and specify the required fields.  EDI Templ1 Settings1

  5. Select Edit on XMLGENERATOR and specify the required fields.  EDI Templ1 Settings2

  6. Select Edit on SPLITTER and specify the required fields.  EDI Templ1 Settings3

  7. Select Edit on FILEWRITER and specify the required fields.  EDI Templ1 Settings4

  8. Run the Check Configuration action to verify the connection is configured correctly.

  9. Publish the connection (optional for demo). Follow the steps in the wizard to complete the publication.

  10. Refresh or restart the Microsoft Dynamics 365 Business Central client.

Process

  1. Create two new purchase orders, for example, for vendor 10000 London Postmaster and 20000 AR Day Property Management.

  2. Release both purchase orders.

  3. Process the connection.

Result

EDI Templ1 Result

For each released purchase order, an XML file creates and becomes available at the specified location.

Sales order import template

Story

This connection uses the following pipeline elements:

  • The File Reader endpoint reads the purchase order (in XML format) from the file system.

  • The purchase order XML file does not match the D365 BC table structures for the Sales Header table, so a Mapper activity maps the external (source) document and the internal (target) document.

  • The Record Generator activity creates records and updates the D365 BC tables.

  • Two documents support this connection: TI_EDI2_SO.EXT (the external document being read) and TI_EDI2_SO_INT (the internal D365 BC table structure specifying how the records store).

EDI Templ2 Pipeline

Setup

  1. Select the CRONUS International Ltd. company.

  2. Import the EDI Studio Connection-TI_EDI_2.SO.IN.zip configuration package.

  3. Open the TI_EDI_2.SO.IN connection.

  4. Select Edit on FILEREADER and specify the required fields.  EDI Templ2 Settings1

  5. Select Edit on MAPPER and specify the required fields.  EDI Templ2 Settings2 EDI Templ2 Settings4

  6. Select Edit on RECORDGENERATOR and specify the required fields.  EDI Templ2 Settings3

Process

  1. Process the connection.

  2. If processing succeeds, check Message Entries for results.

Result

A new sales order creates and becomes available in the Sales Header table. The Message Entries table shows which sales order creates. Use the Transaction Log to see more details for each import.

EDI Templ2 Results

Order confirmation export template

Story

This connection uses the following pipeline elements:

  • The sales order imports with status Open. When the Sales Manager confirms the planned shipment dates and releases the order, the Record Change Event detects the modification and triggers the pipeline.

  • Two documents support this connection: TI_EDI3_SO.TRIG for triggering, and TI_EDI3_SO.INT to generate a filtered set of data for the XML Generator and Splitter.

    EDI Template Out

Setup

  1. Select the CRONUS International Ltd. company.

  2. Import the EDI Studio Connection-TI_EDI_3.CONF.OUT.zip configuration package.

  3. Open the TI_EDI_3.CONF.OUT connection.

  4. Select Edit on RECORDCHANGEEVENT and specify the required fields.  EDI Templ3 Settings1

  5. Select Edit on XMLGENERATOR and specify the required fields.  EDI Templ3 Settings2

  6. Select Edit on SPLITTER and specify the required fields.  EDI Templ3 Settings3

  7. Select Edit on FILEWRITER and specify the required fields.  EDI Templ3 Settings4

  8. Run the Check Configuration action to verify the connection is configured correctly.

  9. Publish the connection (optional for demo). Follow the steps in the wizard to complete the publication.

  10. Refresh or restart the Microsoft Dynamics 365 Business Central client.

Process

  1. Release the sales orders imported previously.

  2. Process the connection.

Result

For each released sales order, an XML file creates and becomes available at the specified location.

EDI Templ3 Results

Order confirmation import template

Story

This connection uses the following pipeline elements:

  • The File Reader endpoint reads the order confirmation (in XML format) from the file system.

  • The sales order confirmation does not match the D365 BC table structures for the Purchase Header table, so a Mapper activity maps the external (source) document and the internal (target) document.

  • The Record Generator activity creates records and updates the D365 BC tables. After importing the order confirmation, the External Document No. updates on the Purchase Header.

  • Two documents support this connection: TI_EDI4_SO.EXT (the external document being read) and TI_EDI4_SO.INT (the internal D365 BC table structure specifying how the records store).

EDI Template In

Setup

  1. Select the CRONUS Sales company.

  2. Import the EDI Studio Connection-TI_EDI_4.CONF.IN.zip configuration package.

  3. Open the TI_EDI_4.CONF.IN connection.

  4. Select Edit on FILEREADER and specify the required fields.  EDI Templ4 Settings1

  5. Select Edit on MAPPER and specify the required fields.  EDI Templ4 Settings2

  6. Select Edit on RECORDGENERATOR and specify the required fields.  EDI Templ4 Settings3

  7. Select Edit on EVENTGENERATOR and specify the required fields.  EDI Templ4 Settings4

Process

  1. Process the connection.

  2. If processing succeeds, check Message Entries for results.

Result

EDI Templ4 Results

The purchase order updates with the External Document No. field. Use the Transaction Log to see more details for each import.

Shipment export template

Use this connection to export a shipment from CRONUS International Ltd.

Story

This connection uses the following pipeline elements:

  • After the Sales Manager posts a shipment (selecting Post, then Ship: not Invoice or Ship and Invoice), a posted sales shipment creates for the sales order. The Record Change Event detects this and triggers the pipeline.

  • The TI_EDI5_SHIP.INT document triggers the pipeline and generates a filtered set of data for the XML Generator and Splitter.

EDI Templ5 Pipeline

Setup

  1. Select the CRONUS International Ltd. company.

  2. Import the EDI Studio Connection-TI_EDI_5.SHIP.OUT.zip configuration package.

  3. Open the TI_EDI_5.SHIP.OUT connection.

  4. Select Edit on RECORDCHANGEEVENT and specify the required fields.  EDI Templ5 Settings1

  5. Select Edit on XMLGENERATOR and specify the required fields.  EDI Templ5 Settings2

  6. Select Edit on SPLITTER and specify the required fields.  EDI Templ5 Settings3

  7. Select Edit on FILEWRITER and specify the required fields.  EDI Templ5 Settings4

  8. Refresh or restart the Microsoft Dynamics 365 Business Central client.

Process

  1. Open a released sales order and define the Quantity to Ship field on the sales line.

  2. Post the shipment.

  3. Process the connection.

Result

EDI Templ5 Results

For each shipped sales order, an XML file creates (based on the posted sales shipment) and becomes available at the specified location.

Shipment import template

Use this connection to import a shipment into CRONUS Sales.

Story

This connection uses the following pipeline elements:

  • The File Reader endpoint reads the posted sales shipment (in XML format) from the file system.

  • The posted sales shipment does not match the D365 BC table structures for the Purchase Header table, so a Mapper activity maps the external (source) document and the internal (target) document.

  • The Record Generator activity creates records and updates the D365 BC tables. After importing the posted sales shipment, the Quantity to Receive and the Vendor Shipment No. update in the purchase order.

  • Two documents support this connection: TI_EDI6_SHIP.EXT (the external document being read) and TI_EDI6_SHIP.INT (the internal D365 BC table structure specifying how the records store).

EDI Template In

Setup

  1. Select the CRONUS Sales company.

  2. Import the EDI Studio Connection-TI_EDI_6.SHIP.IN.zip configuration package.

  3. Open the TI_EDI_6.SHIP.IN connection.

  4. Select Edit on FILEREADER and specify the required fields.  EDI Templ6 Settings1

  5. Select Edit on MAPPER and specify the required fields.  EDI Templ6 Settings2

  6. Select Edit on RECORDGENERATOR and specify the required fields.  EDI Templ6 Settings3

  7. Select Edit on EVENTGENERATOR and specify the required fields.  EDI Templ6 Settings4

Process

  1. Process the connection.

  2. If processing succeeds, check Message Entries for results.

Result

EDI Templ6 Results

The purchase order updates with the Quantity to Receive and Vendor Shipment No. fields. Use the Transaction Log to see more details for each import.

Invoice export template

Use this connection to export an invoice from CRONUS International Ltd.

Story

This connection uses the following pipeline elements:

  • After the Sales Manager posts an invoice, a posted sales invoice creates for the sales order. The Record Change Event detects this and triggers a new export.

  • The TI_EDI7_INV.INT document triggers the pipeline and generates a filtered set of data for the XML Generator and Splitter.

EDI Template Out

Setup

  1. Select the CRONUS International Ltd. company.

  2. Import the EDI Studio Connection-TI_EDI_7.INV.OUT.zip configuration package.

  3. Open the TI_EDI_7.INV.OUT connection.

  4. Select Edit on RECORDCHANGEEVENT and specify the required fields.  EDI Templ7 Settings1

  5. Select Edit on XMLGENERATOR and specify the required fields.  EDI Templ7 Settings2

  6. Select Edit on SPLITTER and specify the required fields.  EDI Templ7 Settings3

  7. Select Edit on FILEWRITER and specify the required fields.  EDI Templ7 Settings4

  8. Refresh or restart the Microsoft Dynamics 365 Business Central client.

Process

  1. Open a released sales order and define the Quantity to Invoice field on the sales line.

  2. Post the invoice.

  3. Process the connection.

Result

EDI Templ7 Results

For each invoiced sales order, an XML file creates (based on the posted sales invoice) and becomes available at the specified location.

Invoice import template

Use this connection to import an invoice into CRONUS Sales.

Story

This connection uses the following pipeline elements:

  • The File Reader endpoint reads the posted sales invoice (in XML format) from the file system.

  • The posted sales invoice does not match the D365 BC table structures for the Purchase Header table, so a Mapper activity maps the external (source) document and the internal (target) document.

  • The Record Generator activity creates records and updates the D365 BC tables. After importing the posted sales invoice, the Quantity to Invoice and the Vendor Invoice No. update on the purchase order.

  • Two documents support this connection: TI_EDI8_INV.EXT (the external document being read) and TI_EDI8_INV.INT (the internal D365 BC table structure specifying how the records store).

EDI Template In

Setup

  1. Select the CRONUS Sales company.

  2. Import the EDI Studio Connection-TI_EDI_8.INV.IN.zip configuration package.

  3. Open the TI_EDI_8.INV.IN connection.

  4. Select Edit on FILEREADER and specify the required fields.  EDI Templ8 Settings1

  5. Select Edit on MAPPER and specify the required fields.  EDI Templ8 Settings2

  6. Select Edit on RECORDGENERATOR and specify the required fields.  EDI Templ8 Settings3

  7. Select Edit on EVENTGENERATOR and specify the required fields.  EDI Templ8 Settings4

Process

  1. Process the connection.

  2. If processing succeeds, check Message Entries for results.

Result

EDI Templ8 Results

The purchase order updates with the Quantity to Invoice and Vendor Invoice No. fields. Use the Transaction Log to see more details for each import.