Product: Dynamics 365 for Finance and Operations
Article Link: https://help.truecommerce.com/en/articles/16528147-dynamics-365-for-finance-and-operations-configuring-ship-to-locations
The Ship-To Cross Reference allows the Dynamics 365 for Finance and Operations integration to map an Electronic Data Interchange (EDI) location code transmitted by your Trading Partner on an inbound Purchase Order (850) to a specific delivery address within Dynamics 365 for Finance and Operations. When a Trading Partner sends a Purchase Order that includes a Ship-To location code — such as a distribution center number or store code — this cross reference ensures the system correctly identifies and assigns the matching Dynamics 365 address to the created Sales Order.
Before creating the Ship-To Cross Reference itself, you will first need to configure your Order Type Cross Reference to instruct the system which location code to look for and which matching method to use. Once that is in place, you can then define individual Ship-To Location entries that map each transmitted code to its corresponding Dynamics 365 address.
Locating The Transmitted Ship-To Code
Each Ship-To Location Cross-Reference is configured based on the Transmitted EDI Ship-To Code sent by your Trading Partner found within the RAW EDI data of the inbound Purchase Order (850) which gets brought into the Inbound Sales Order Mailbox within Finance & Operations
To find the location code your Trading Partner is transmitting, review the raw EDI data on an inbound message within your Sales Order Mailbox by utilizing the EDI ASV view. The Ship-To Code will appear within the N1 Segment with a qualifier of ST (Ship-To) in the fourth element (N104).
Navigate: EDI → Accounts Receivable → (Import )→ Inbound Sales Order Mailbox
Select: The inbound message you wish to review
Select: EDI Advance Ship Verification (ASV) button
Locate: The N1 Segment with the ST qualifier — the fourth value (N104) is your transmitted location code
Raw EDI - N104
Example - In the below text the ship-to code would be 3516 as it's the 4th element:
N1*ST*HOME DEPOT # 3516**3516~
Configure the Order Type Cross Reference
The Order Type Cross Reference controls how the integration reads and matches Ship-To location codes transmitted by your Trading Partner. You will first need to determine the code your Trading Partner is sending, then configure the Order Type to use it.
Enabling Ship-To Matching
Once you have identified the transmitted location code, configure the Order Type Cross Reference to enable Ship-To matching and define how the system should match incoming location codes.
Modifying the Order Type
You will need to enabled the Ship To's Cross Reference Lookup Method within each Order Type that you wish to perform Ship-To Location cross-references for.
Ship-To Location Codes can be configured at a System, Company, or Partner level as needed.
Navigate: EDI → Accounts Receivable → System Cross References
Navigate: Inbound → Order Types
Select: Desired Order Type
Select: Details
Order Type is determined by the BEG02 Segment sent on your Inbound Purchase Order (850) sent from your Trading Partner
Setting Ship-To Lookup Method
Within your Order Type details you will want to set the Cross Reference Lookup Method under the Ship To group within the general settings.
Navigate: General → Ship-To
Set: Cross Reference Lookup Method
Option | Description |
Default | Falls back to the System/Company Cross Reference — no Trading Partner-specific Ship-To lookup is performed. (Company/Partner Level Only) |
Do Not Use | Disables the Ship-To Cross Reference entirely for this Order Type — no location matching is attempted |
Four Character Location Code Match | Matches only the last 4 characters of the transmitted location code against the cross reference |
Full Location Code Match | Matches the full transmitted location code value exactly as received |
Four Character Then Full Match | Attempts a last-4-character match first; if no match is found, falls back to a full code match |
Full Then Four Character Match | Attempts a full code match first; if no match is found, falls back to a last-4-character match |
Configuring Line-Item Location Codes
While atypical - your Trading Partner may wish to send Location Codes at at the Item Level rather than, or addition to, the header level.
You can enable the Truecommerce EDI Module to consider Line-Level Location Codes as valid by enabling the Line Item Ship-To option.
Navigate: General → Ship-To
Set: Line Item Ship-To
Save
Line Item Ship-To Option
Option | Description |
Default | Falls back to the System/Company Cross Reference (Company/Partner Level Only) |
Do Not Use | Ignores Line-Level Ship To Codes |
Use | Will Consider Line-Level Ship-To Codes |
Configuring No Ship-To Reporting
You can configure whether or not to provide an error report for Inbound Purchase Orders that transmit a blank or missing Ship-To Code allowing your team to be notified whenever your Trading Partner fails to send a Location Code
Navigate: General → Ship-To
Set: No Ship-To Address Assigned
Save
Option | Description |
Default |
|
Error Document |
|
Warn |
|
Do No Report |
|
Configuring No Ship-To Cross Reference
You can additionally setup error reporting for instances in which no match was found within the Location Cross Reference matching the transmitted Ship-To Code on the Inbound Purchase Order sent by your Trading Partner.
Navigate: General → Ship-To
Set: No Ship-To Cross Reference
Save
Option | Description |
Default |
|
Error Document |
|
Warn |
|
Do Not Report |
|
Configuring the N1 Qualifiers
You will need to configure the Ship-To EDI Qualifiers so that the TrueCommerce extension knows which addresses should be used from your Trading Partner. Since there are often multiple addresses being sent, each one contained with an N1 Segment Loop, you will distinguish between each address by setting a qualifier within the N101 Element
Common EDI Qualifiers
While every Trading Partner determines which EDI Qualifier should be utilized to determine the desired Location Code to be used for shipping based on whether they're doing a direct ship, a cross-dock, or passing to a warehouse. It is common to see the following codes utilized across most Trading Partners
Qualifier | Description |
ST | Ship-To |
BT | Bill-To |
BY | Buying Party |
SF | Ship From |
VN | Vendor |
DP | Destination Party |
OB | Ordered By |
Each Trading Partner has their priorities for which N1 Qualifier to utilize to when determining the Ship-To Location
Navigate: EDI → Accounts Receivable → System Cross References
Select: Inbound → (Order Type) → Details
Navigate: Qualifiers → Address Qualifiers → Ship-to
Add/Order: Qualifiers per Trading Partner Requirements
Address Qualifiers Configuration
Priority
You can add multiple Ship-To Qualifiers into the Address Qualifiers list, where the TrueCommerce Extension will utilize them in the priority marked from top to bottom - using the first qualifier that has a match and using the associated EDI Code to cross-reference with.
Note: You can override the Qualifier Priority list at the Customer Cross-Reference Level if needed by creating a custom Order Type configuration
Configuring Ship-To Address List Precedence
You can utilize the Precedence List to control the priority of how you would like the TrueCommerce Extension to assign the Ship-To Address when creating a Sales Order. Choosing to have the system use the address located on your Customer Card, the Transmitted EDI Address, or use the Location Cross-Reference Address when cross-referencing an EDI Code.
This configuration allows you which to utilize, and moving onto the next option when not found. Allowing multiple places to be evaluated for a valid address upon creation.
Navigate: EDI → Accounts Receivable → System Cross References
Select: Inbound → (Order Type) → Details
Navigate: Precedence Lists → Ship-to Addresses Assignment
Add/Order: Precedence Options as Desired
Option | Description |
Default to ERP | Uses the default delivery address set on the Customer Card in Dynamics 365 for Finance and Operations |
Use Cross Reference | Uses the address assigned in the Ship-To Location Cross Reference for the matched location code |
Assign Transmitted | Uses the address included directly within the EDI message transmitted by the Trading Partner |
You can use the Up and Down arrows to set the Precedence from lowest to highest to determine the order in which the system should find the Address List to utilize on the Sales Order
Populating the Ship-To Location Cross-Reference
With the Order Type Cross Reference configured, you can now create the Ship-To Location Cross Reference entries. Each entry in the Ship-To Locations fast tab maps one transmitted location code to its corresponding Dynamics 365 delivery address.
Navigate: EDI → Accounts Receivable → Customer Cross References
Select: Desired Customer Entry
Navigate: General → Ship-to Locations
Select: Add/Edit
Enter (Actual Customer): The Finance & Operations Customer Code
Enter (Location Code): The Desired EDI Code Sent from your Trading Partner
Select: OK to save
Ship-To Location Entry
Field | Description |
Actual Customer | The Dynamics 365 for Finance and Operations Customer Account that the Sales Order should be created for |
Location Code | The location code transmitted by the Trading Partner in the N104 element of the N1 Segment (e.g., "0001" from N1*ST**94*0001~) |
Location Qualifier | Written to the extended header of the created Sales Order and available for use in outbound EDI documents |
Location Address | Select the Ship-To delivery address from Dynamics 365 based on the Actual Customer selected above |
Distribution Center (DC) Code | An optional Distribution Center (DC) identifier written to the extended header of the created Sales Order and available for outbound documents |
DC Qualifier | Written to the extended header of the created Sales Order and available for outbound documents |
DC Address | Select a Distribution Center address from Dynamics 365 to associate with this Ship-To location |
Delivery Address Source | Determines which address (Location Address or DC Address) is set as the delivery address on the created Sales Order |
Sales Responsible | Select the salesperson to be assigned to Sales Orders created from this Ship-To location |
Invoice Account | Select the account to be invoiced for orders from this Ship-To location — this may differ from the ordering customer |
Invoice Address | Select the billing address from Dynamics 365 based on the Invoice Account selected above |
Bill To Code | Written to the extended header of the created Sales Order and available for outbound documents |
Bill To Qualifier | Written to the extended header of the created Sales Order and available for outbound documents |
Buyer Code | Written to the extended header of the created Sales Order and available for outbound documents |
Buyer Qualifier | Written to the extended header of the created Sales Order and available for outbound documents |
Payment Service Location | Written to the extended header of the created Sales Order and available for outbound documents |
Payment Service Qualifier | Written to the extended header of the created Sales Order and available for outbound documents |
Lead-Time Days | Adds a number of days to the arrival date on the created EDI Shipment to account for transit time to this location |
Site | Sets the ship-from Site on the created Sales Order |
Warehouse | Sets the ship-from Warehouse on the created Sales Order |
Default To | When Site is set to Default, determines whether to use the ERP Value (Dynamics 365 default) or the Cross Reference (Order Type or Item Cross Reference setting) |
Transfer Order Fields
If your integration is configured to create Transfer Orders from inbound Purchase Orders (850), the following additional fields are available to define the receiving location for the transfer:
Field | Description |
Site | Sets the receiving Site on the Transfer Order created from this Ship-To location |
Warehouse | Sets the receiving Warehouse on the Transfer Order created from this Ship-To location |
Delivery Address Source | Determines which address to assign as the delivery address on the created Transfer Order |
Address | Select the address from Dynamics 365 based on the Warehouse selected above |
Additional Resources
rev 08/20/26











