This flow explains how to set up the document flows for EDI messages that a seller can send to or receive from a buyer.

Note: Based on the outbound document flows as defined for a customer, on the sales order header, in the EDI section, options are selected. These options indicate which document flows apply to the sales order. Usually, you do not change these settings. However, if required, you can switch off a document flow for a sales order.

Application Consultant Application Consultant Start Start Set up document flow - Sales order Set up document flow - Sales order Set up a document flow to define how to import a received order from a specific customer. On the document flow, you can set these EDI messages to import a sales order: 'Sales - XML to EDI order': If you use staging, use this message to receive an order from your customer. This message imports the received sales order into the EDI sales order journal. When the import is completed, the applicable validations are done automatically. 'Sales - XML order to Order': If you do not use staging, use this message to receive an order from your customer. This message imports the received sales order directly into the Sales orders table. You can choose to exchange this EDI message using a web service. In this case, instead of a message, use an inbound web service action with one of the above messages as request message. Procedure 1. Click Connectivity studio EDI Party setup. 2. Click the Document flow tab. 3. Click New. 4. You can use origins to indicate where messages originate from. For example, a message can originate from EDI, a web shop, or a customer self-service portal. You can set the origin to indicate that the document flow only applies to messages with the same origin. In the Origin field, enter or select a value. Note: If you do not define an origin, the document flow only applies to messages that also don't have the origin defined. 5. In the Account code field, select 'Customer'. Note: - For a sales order document flow, you can also select 'Legal entity'. You can use a legal entity document flow to receive sales order messages from a customer which, for example, does not exist in Microsoft Dynamics 365 for Finance and Operations or has no EDI party setup. If you receive a sales order message from such a customer, it can be received with the document flow for your legal entity. If the Account code is 'Legal entity', make sure an origin is filled in which Customer document flow is set to 'Customer + legal entity'. - You can also select 'EDI group' to link the document flow to an EDI group. As a result, the document flow is applied to all EDI parties with the EDI group assigned. 6. In the Account selection field, enter or select a value. 7. In the Document flow field, select 'Order'. 8. In the Direction field, select 'Inbound'. 9. In the Number sequence field, enter or select a value. 10. Select the Test check box. 11. In the Message field or in the Web service action field, enter or select a value. 12. Clear the Active check box. 13. Close the page. Notes To be able to receive an EDI message based on this document flow, the GLN code must be set for the current company (legal entity).If you use staging, make sure the appropriate journal validations are set up. Set up document flow - Sales order (Delfor) Set up document flow - Sales order (Delfor) Set up a document flow to define how to import a received order (Delfor) from a specific customer. On the document flow, you can set the 'Sales (Delfor) - XML to EDI Delfor journal' message. This message imports the received sales order (Delfor) into the EDI Delfor journal. When the import is completed, the applicable validations are done automatically. You can choose to exchange this EDI message using a web service. In this case, instead of a message, use an inbound web service action with the 'Sales (Delfor) - XML to EDI Delfor journal' message as request message. Procedure 1. Click Connectivity studio EDI Party setup. 2. Click the Document flow tab. 3. Click New. 4. You can use origins to indicate where messages originate from. For example, a message can originate from EDI, a web shop, or a customer self-service portal. You can set the origin to indicate that the document flow only applies to messages with the same origin. In the Origin field, enter or select a value. Note: If you do not define an origin, the document flow only applies to messages that also don't have the origin defined. 5. In the Account code field, select 'Customer'. Note: You can also select 'EDI group' to link the document flow to an EDI group. As a result, the document flow is applied to all EDI parties with the EDI group assigned. 6. In the Account selection field, enter or select a value. 7. In the Document flow field, select 'Order'. 8. In the Direction field, select 'Inbound'. 9. In the Number sequence field, enter or select a value. 10. Select the Test check box. 11. In the Message field or in the Web service action field, enter or select a value. 12. Clear the Active check box. 13. Close the page. Notes To be able to receive an EDI message based on this document flow, the GLN code must be set for the current company (legal entity). Make sure, the appropriate journal validations are set up. Set up document flow - Sales acknowledgement Set up document flow - Sales acknowledgement Set up a document flow to define how to send a sales order acknowledgement message to a specific customer. On the document flow, set the 'Sales - Acknowledgement to XML' message. This message sends the sales order acknowledgement to your customer. You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Acknowledgement to XML' message as request message. Procedure 1. Click Connectivity studio EDI Party setup. 2. Click the Document flow tab. 3. Click New. 4. You can use origins to indicate where messages originate from. For example, a message can originate from EDI, a web shop, or a customer self-service portal. You can set the origin to indicate that the document flow only applies to messages with the same origin. In the Origin field, enter or select a value. Note: If you do not define an origin, the document flow only applies to messages that also don't have the origin defined. 5. In the Account code field, select 'Customer'. Note: You can also select 'EDI group' to link the document flow to an EDI group. As a result, the document flow is applied to all EDI parties with the EDI group assigned. 6. In the Account selection field, enter or select a value. 7. In the Document flow field, select 'Acknowledge'. 8. In the Direction field, select 'Outbound'. 9. In the Number sequence field, enter or select a value. 10. Select the Test check box. 11. In the Message field or in the Web service action field, enter or select a value. 12. In the outbound queue, several entries can exist for a unique message or web service action. For an outbound document flow, you can bundle the entries for the applicable message or web service action. The outbound queue entries are bundled by the applicable EDI party. On processing the outbound queue, the entries are bundled in one message run or web service action run, which results in one file. Select the Bundle outbound queue by message check box. Note: - If, for the document flow, the account code is EDI group, the outbound queue entries are bundled by each EDI party as set up for the EDI group. - You can also apply bundling to the Additional setup of an outbound document flow. 13. Select the Flow condition check box. 14. You can define a target connector for a document flow. This target connector overrules the target connector of the document flow message. In this way, you can use one message to send an EDI message to several EDI parties. So, no separate message is required for each of the EDI parties. In the Connector field, enter or select a value. Note: To apply a document flow target connector: For each target, enter a document flow with the same message but a different target connector. The target connector you define for the document flow must match the type of the target connector of the message. If the message connector type is: D365 FO -> D365 FO Database -> Database Staging journal -> Staging journal Azure file storage, Azure Blob Storage, and SharePoint are interchangeable. Connectors of type 'Web service' or 'Upload and download' are not supported. The data structure of the different targets must be the same. 15. Clear the Active check box. 16. Close the page. Notes To be able to send an EDI message based on this document flow, the GLN code must be set for the current company (legal entity). Set up document flow - Sales confirmation Set up document flow - Sales confirmation Set up a document flow to define how to send a sales order confirmation message to a specific customer. On the document flow, set the 'Sales - Confirmation to XML' message. This message sends the sales order confirmation to your customer. You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Confirmation to XML' message as request message. Procedure 1. Click Connectivity studio EDI Party setup. 2. Click the Document flow tab. 3. Click New. 4. You can use origins to indicate where messages originate from. For example, a message can originate from EDI, a web shop, or a customer self-service portal. You can set the origin to indicate that the document flow only applies to messages with the same origin. In the Origin field, enter or select a value. Note: If you do not define an origin, the document flow only applies to messages that also don't have the origin defined. 5. In the Account code field, select 'Customer'. Note: You can also select 'EDI group' to link the document flow to an EDI group. As a result, the document flow is applied to all EDI parties with the EDI group assigned. 6. In the Account selection field, enter or select a value. 7. In the Document flow field, select 'Confirmation'. 8. In the Direction field, select 'Outbound'. 9. In the Number sequence field, enter or select a value. 10. Select the Test check box. 11. In the Message field or in the Web service action field, enter or select a value. 12. In the outbound queue, several entries can exist for a unique message or web service action. For an outbound document flow, you can bundle the entries for the applicable message or web service action. The outbound queue entries are bundled by the applicable EDI party. On processing the outbound queue, the entries are bundled in one message run or web service action run, which results in one file. Select the Bundle outbound queue by message check box. Note: - If, for the document flow, the account code is EDI group, the outbound queue entries are bundled by each EDI party as set up for the EDI group. - You can also apply bundling to the Additional setup of an outbound document flow. 13. Select the Flow condition check box. 14. You can define a target connector for a document flow. This target connector overrules the target connector of the document flow message. In this way, you can use one message to send an EDI message to several EDI parties. So, no separate message is required for each of the EDI parties. In the Connector field, enter or select a value. Note: To apply a document flow target connector: For each target, enter a document flow with the same message but a different target connector. The target connector you define for the document flow must match the type of the target connector of the message. If the message connector type is: D365 FO -> D365 FO Database -> Database Staging journal -> Staging journal Azure file storage, Azure Blob Storage, and SharePoint are interchangeable. Connectors of type 'Web service' or 'Upload and download' are not supported. The data structure of the different targets must be the same. 15. Clear the Active check box. 16. Close the page. Notes To be able to send an EDI message based on this document flow, the GLN code must be set for the current company (legal entity). Set up document flow - Sales ASN Set up document flow - Sales ASN Set up a document flow to define how to send a sales packing slip message to a specific customer. On the document flow, set the 'Sales - Delivery to XML' message. This message sends the packing slip to your customer. This message is also known as an advance shipping notice (ASN). You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Delivery to XML' message as request message. Procedure 1. Click Connectivity studio EDI Party setup. 2. Click the Document flow tab. 3. Click New. 4. You can use origins to indicate where messages originate from. For example, a message can originate from EDI, a web shop, or a customer self-service portal. You can set the origin to indicate that the document flow only applies to messages with the same origin. In the Origin field, enter or select a value. Note: If you do not define an origin, the document flow only applies to messages that also don't have the origin defined. 5. In the Account code field, select 'Customer'. Note: You can also select 'EDI group' to link the document flow to an EDI group. As a result, the document flow is applied to all EDI parties with the EDI group assigned. 6. In the Account selection field, enter or select a value. 7. In the Document flow field, select 'Advance Ship Notice'. 8. In the Direction field, select 'Outbound'. 9. In the Number sequence field, enter or select a value. 10. Select the Test check box. 11. In the Message field or in the Web service action field, enter or select a value. 12. In the outbound queue, several entries can exist for a unique message or web service action. For an outbound document flow, you can bundle the entries for the applicable message or web service action. The outbound queue entries are bundled by the applicable EDI party. On processing the outbound queue, the entries are bundled in one message run or web service action run, which results in one file. Select the Bundle outbound queue by message check box. Note: - If, for the document flow, the account code is EDI group, the outbound queue entries are bundled by each EDI party as set up for the EDI group. - You can also apply bundling to the Additional setup of an outbound document flow. 13. Select the Flow condition check box. 14. You can define a target connector for a document flow. This target connector overrules the target connector of the document flow message. In this way, you can use one message to send an EDI message to several EDI parties. So, no separate message is required for each of the EDI parties. In the Connector field, enter or select a value. Note: To apply a document flow target connector: For each target, enter a document flow with the same message but a different target connector. The target connector you define for the document flow must match the type of the target connector of the message. If the message connector type is: D365 FO -> D365 FO Database -> Database Staging journal -> Staging journal Azure file storage, Azure Blob Storage, and SharePoint are interchangeable. Connectors of type 'Web service' or 'Upload and download' are not supported. The data structure of the different targets must be the same. 15. Clear the Active check box. 16. Close the page. Notes To be able to send an EDI message based on this document flow, the GLN code must be set for the current company (legal entity). Set up document flow - Sales invoice Set up document flow - Sales invoice Set up a document flow to define how to send a sales invoice message to a specific customer. On the document flow, set the 'Sales - Invoice to XML' message. This message sends the sales invoice to your customer. You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Invoice to XML' message as request message. Procedure 1. Click Connectivity studio EDI Party setup. 2. Click the Document flow tab. 3. Click New. 4. You can use origins to indicate where messages originate from. For example, a message can originate from EDI, a web shop, or a customer self-service portal. You can set the origin to indicate that the document flow only applies to messages with the same origin. In the Origin field, enter or select a value. Note: If you do not define an origin, the document flow only applies to messages that also don't have the origin defined. 5. In the Account code field, select 'Customer'. Note: You can also select 'EDI group' to link the document flow to an EDI group. As a result, the document flow is applied to all EDI parties with the EDI group assigned. 6. In the Account selection field, enter or select a value. 7. In the Document flow field, select 'Invoice'. 8. In the Direction field, select 'Outbound'. 9. In the Number sequence field, enter or select a value. 10. Select the Test check box. 11. In the Message field or in the Web service action field, enter or select a value. 12. In the outbound queue, several entries can exist for a unique message or web service action. For an outbound document flow, you can bundle the entries for the applicable message or web service action. The outbound queue entries are bundled by the applicable EDI party. On processing the outbound queue, the entries are bundled in one message run or web service action run, which results in one file. Select the Bundle outbound queue by message check box. Note: - If, for the document flow, the account code is EDI group, the outbound queue entries are bundled by each EDI party as set up for the EDI group. - You can also apply bundling to the Additional setup of an outbound document flow. 13. Select the Flow condition check box. 14. You can define a target connector for a document flow. This target connector overrules the target connector of the document flow message. In this way, you can use one message to send an EDI message to several EDI parties. So, no separate message is required for each of the EDI parties. In the Connector field, enter or select a value. Note: To apply a document flow target connector: For each target, enter a document flow with the same message but a different target connector. The target connector you define for the document flow must match the type of the target connector of the message. If the message connector type is: D365 FO -> D365 FO Database -> Database Staging journal -> Staging journal Azure file storage, Azure Blob Storage, and SharePoint are interchangeable. Connectors of type 'Web service' or 'Upload and download' are not supported. The data structure of the different targets must be the same. 15. Clear the Active check box. 16. Close the page. Notes To be able to send an EDI message based on this document flow, the GLN code must be set for the current company (legal entity). End End

Activities

Name Responsible Description

Set up document flow - Sales order

Application Consultant

Set up a document flow to define how to import a received order from a specific customer.
On the document flow, you can set these EDI messages to import a sales order:
  • 'Sales - XML to EDI order': If you use staging, use this message to receive an order from your customer. This message imports the received sales order into the EDI sales order journal. When the import is completed, the applicable validations are done automatically.
  • 'Sales - XML order to Order': If you do not use staging, use this message to receive an order from your customer. This message imports the received sales order directly into the Sales orders table.

You can choose to exchange this EDI message using a web service. In this case, instead of a message, use an inbound web service action with one of the above messages as request message.

Set up document flow - Sales order (Delfor)

Application Consultant

Set up a document flow to define how to import a received order (Delfor) from a specific customer.

On the document flow, you can set the 'Sales (Delfor) - XML to EDI Delfor journal' message. This message imports the received sales order (Delfor) into the EDI Delfor journal. When the import is completed, the applicable validations are done automatically.

You can choose to exchange this EDI message using a web service. In this case, instead of a message, use an inbound web service action with the 'Sales (Delfor) - XML to EDI Delfor journal' message as request message.

Set up document flow - Sales acknowledgement

Application Consultant

Set up a document flow to define how to send a sales order acknowledgement message to a specific customer.
On the document flow, set the 'Sales - Acknowledgement to XML' message. This message sends the sales order acknowledgement to your customer.
You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Acknowledgement to XML' message as request message.

Set up document flow - Sales confirmation

Application Consultant

Set up a document flow to define how to send a sales order confirmation message to a specific customer.

On the document flow, set the 'Sales - Confirmation to XML' message. This message sends the sales order confirmation to your customer.

You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Confirmation to XML' message as request message.

Set up document flow - Sales ASN

Application Consultant

Set up a document flow to define how to send a sales packing slip message to a specific customer.

On the document flow, set the 'Sales - Delivery to XML' message. This message sends the packing slip to your customer. This message is also known as an advance shipping notice (ASN).

You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Delivery to XML' message as request message.

Set up document flow - Sales invoice

Application Consultant

Set up a document flow to define how to send a sales invoice message to a specific customer.

On the document flow, set the 'Sales - Invoice to XML' message. This message sends the sales invoice to your customer.

You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Invoice to XML' message as request message.

Activities

Name Responsible Description

Set up document flow - Sales order

Application Consultant

Set up a document flow to define how to import a received order from a specific customer.
On the document flow, you can set these EDI messages to import a sales order:
  • 'Sales - XML to EDI order': If you use staging, use this message to receive an order from your customer. This message imports the received sales order into the EDI sales order journal. When the import is completed, the applicable validations are done automatically.
  • 'Sales - XML order to Order': If you do not use staging, use this message to receive an order from your customer. This message imports the received sales order directly into the Sales orders table.

You can choose to exchange this EDI message using a web service. In this case, instead of a message, use an inbound web service action with one of the above messages as request message.

Set up document flow - Sales order (Delfor)

Application Consultant

Set up a document flow to define how to import a received order (Delfor) from a specific customer.

On the document flow, you can set the 'Sales (Delfor) - XML to EDI Delfor journal' message. This message imports the received sales order (Delfor) into the EDI Delfor journal. When the import is completed, the applicable validations are done automatically.

You can choose to exchange this EDI message using a web service. In this case, instead of a message, use an inbound web service action with the 'Sales (Delfor) - XML to EDI Delfor journal' message as request message.

Set up document flow - Sales acknowledgement

Application Consultant

Set up a document flow to define how to send a sales order acknowledgement message to a specific customer.
On the document flow, set the 'Sales - Acknowledgement to XML' message. This message sends the sales order acknowledgement to your customer.
You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Acknowledgement to XML' message as request message.

Set up document flow - Sales confirmation

Application Consultant

Set up a document flow to define how to send a sales order confirmation message to a specific customer.

On the document flow, set the 'Sales - Confirmation to XML' message. This message sends the sales order confirmation to your customer.

You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Confirmation to XML' message as request message.

Set up document flow - Sales ASN

Application Consultant

Set up a document flow to define how to send a sales packing slip message to a specific customer.

On the document flow, set the 'Sales - Delivery to XML' message. This message sends the packing slip to your customer. This message is also known as an advance shipping notice (ASN).

You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Delivery to XML' message as request message.

Set up document flow - Sales invoice

Application Consultant

Set up a document flow to define how to send a sales invoice message to a specific customer.

On the document flow, set the 'Sales - Invoice to XML' message. This message sends the sales invoice to your customer.

You can choose to exchange this EDI message using a web service. In this case, instead of the message, use an outbound web service action with the 'Sales - Invoice to XML' message as request message.

Provide feedback