web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Non primary delivery address not setting in sales order by creating from DMF

(4) ShareShare
ReportReport
Posted on by 18
I’m trying to create a sales order in D365FO using DMF with a non-primary delivery address. However, whenever I create the order, the system automatically picks up the customer’s primary address and ignores the delivery address I’m providing.
 
 
From what I’ve researched, it looks like I need to set the non-primary delivery address name in the `DeliveryAddressName` field of the entity XML. I’ve already updated that, but the sales order is still being created with the primary address instead of the one I specified
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    I think the key field is DeliveryAddressLocationId. Check if you have any value there and if so, which address it's for.
  • CU24090812-1 Profile Picture
    18 on at
    I am not getting location id in payload, I am getting the following fields in my payload: City, CountryRegion, Description, State, Street and Zip code
  • Suggested answer
    Sagar121 Profile Picture
    1,160 Super User 2026 Season 1 on at
     
    Usually the Adress type = delivery get defaulted from customer if you create SO.
    Which entity you are using ? what all fields you are targetting ?
    Can you please put data in field DeliveryAddressDescription & then try?
  • Suggested answer
    CA Aman Agrawal Profile Picture
    123 on at
     
    Please use the DeliveryAddressLocationID filed instead of DeliveryAddressName field. You can refer the below screenshot
  • CU24090812-1 Profile Picture
    18 on at
    I am using SalesOrderHeaderV3Entity and my payload is: 
    <Document>
     <SALESORDERHEADERV3ENTITY>
      <CONFIRMEDRECEIPTDATE>1900-01-01T00:00:00</CONFIRMEDRECEIPTDATE>
      <CONFIRMEDSHIPPINGDATE>1900-01-01T00:00:00</CONFIRMEDSHIPPINGDATE>
      <CURRENCYCODE>USD</CURRENCYCODE>
      <CUSTOMERSORDERREFERENCE>4518964489</CUSTOMERSORDERREFERENCE>
      <ORDERINGCUSTOMERACCOUNTNUMBER>A1020</ORDERINGCUSTOMERACCOUNTNUMBER>
      <REQUESTEDRECEIPTDATE>2025-09-25T00:00:00</REQUESTEDRECEIPTDATE>
      <REQUESTEDSHIPPINGDATE>2025-09-26T00:00:00</REQUESTEDSHIPPINGDATE>
      <DELIVERYADDRESSNAME>Medline Northfield Textile Div 50</DELIVERYADDRESSNAME>
      <DELIVERYADDRESSDESCRIPTION>Medline Industries LP</DELIVERYADDRESSDESCRIPTION>
      <DELIVERYADDRESSCITY>LITHIA SPRINGS</DELIVERYADDRESSCITY>
      <DELIVERYADDRESSCOUNTRYREGIONID>USA</DELIVERYADDRESSCOUNTRYREGIONID>
      <DELIVERYADDRESSSTATEID>GA</DELIVERYADDRESSSTATEID>
      <DELIVERYADDRESSSTREET>9101 RIVERSIDE PKWY</DELIVERYADDRESSSTREET>
      <DELIVERYADDRESSZIPCODE>30122</DELIVERYADDRESSZIPCODE>
      <LANGUAGEID>en-US</LANGUAGEID>
      <SALESORDERORIGINCODE>EDI</SALESORDERORIGINCODE>
     </SALESORDERHEADERV3ENTITY>
    </Document>
  • CU24090812-1 Profile Picture
    18 on at
     
    I have also updated DeliveryAddressLocationID in the payload but still non primary address is not updated on the order. It created with the primary addres.
  • Suggested answer
    CA Neeraj Kumar Profile Picture
    5,099 Super User 2026 Season 1 on at
     
    I have tested the import through DMF for SalesOrderHeaderV3Entity in XML format by giving the DeliveryAddressLocationid and Location id value of non-primary delivery address, and it is working perfectly. 
     
    Please share the latest payload after addition of DeliveryAddressLocationid field, even i have validated from backend X++, it is clearly written there, in case of DeliveryAddressLocationid is passed, it takes LogisticsLocation recid from the given locationid, if it is blank then it picks from Default Delivery address setup in the address > More info > Set defaults.. 
     
    After updating the payload, have you also re-generate your mapping?
     
    If this helped, please mark it as "Verified" for others facing the same issue Keep in mind that it is possible to mark more than one answer as verified
     
    Regards,
    Neeraj Kumar

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans