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

Extract Customer delivery addresses

(0) ShareShare
ReportReport
Posted on by 781

I need to extract the Customer Database with all the addresses.

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You can use the "Customer postal addresses" entity. If you want only delivery addresses, you can filter by field IsRoleDelivery.

  • qianwang Profile Picture
    7,168 on at

    Hi Sriram GS,

    You can extract Customer delivery addresses by one of the below data entities.

    ‘Party postal addresses’ --- get the delivery address by filtering the party number.

    ‘Customer postal addresses’--- get the delivery address by filtering the customer account number.

    Regards,

    QianQW

  • sriram Profile Picture
    781 on at

    Hi,

    Do we need to write any SQL

    can you explain in detail with the Navigation

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    No SQL needed or even possible with D365FO (I suppose you are using that since you used tag "Dynamics AX (current version)".

    1. Go to System administration - Data management workspace.

    2. Click Export to start creating a new export project

    3. In project, Add entity "Customer postal addresses". Choose which ever file format you want to.

    4. After the entity is added, you can click on the filter icon to define filters (assuming you want only Delivery addresses)

    5. Finally, click Export

    6. After the export is complete, click "Download the file".

  • sriram Profile Picture
    781 on at

    Hi,

    I am using Ax 2012. sorry

  • sriram Profile Picture
    781 on at

    Hi,

    Could somebody throw some light on this please.

    Need urgently

  • Suggested answer
    guk1964 Profile Picture
    10,888 on at

    Try this:

       CustTable               custTable;

       DirPartyTable           dirPartyTable;

       DirPartyLocation       dirPartyLocation;

       DirPartyLocationRole   dirPartyLocationRole;

       LogisticsLocation       logisticsLocation;

       LogisticsLocationRole   logisticsLocationRole;

       LogisticsPostalAddress logisticsPostalAddress;

       

          while select custTable

               where   custTable.AccountNum == /* YOUR ACCOUNT */

           join dirPartyTable

                   where   dirPartyTable.RecId == custTable.Party

           join dirPartyLocation

                   where   dirPartyLocation.Party == custTable.Party

               join dirPartyLocationRole

                       where   dirPartyLocationRole.PartyLocation == dirPartyLocation.RecId

                   join logisticsLocationRole

                           where   logisticsLocationRole.RecId == dirPartyLocationRole.LocationRole

                          &&     logisticsLocationRole.Type == /* YOUR ROLE - LogisticsLocationRoleType::Delivery*/  

               join logisticsLocation

                       where   logisticsLocation.RecId == dirPartyLocation.Location

                   join logisticsPostalAddress

                           where   logisticsPostalAddress.Location == logisticsLocation.RecId

       {

           info(strFmt("%1", logisticsPostalAddress.Address));          

       }

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 694

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 337

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans