Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

How I will get CUSTOMER " DELIVERY address " through code

Posted on by 5,885

Hi all,

How I will get CUSTOMER " DELIVERY address " through code in AX 2012 R3

Please give me more shed on this 

  • WillWU Profile Picture
    WillWU 22,344 on at
    RE: How I will get CUSTOMER " DELIVERY address " through code

    Hi @rp@n,

    Please have a look at the custtable.mcrDefaultDeliveryPostalAddress() method on the custTable.

  • Suggested answer
    Vishal Dhavgaye Profile Picture
    Vishal Dhavgaye 405 on at
    RE: How I will get CUSTOMER " DELIVERY address " through code

    Please refer following for the same,

    This is get customer address by address type.

    https://community.dynamics.com/365/financeandoperations/b/365finopsknowledge/posts/get-customer-address-by-type-in-dynamics-ax-d365-f-o-x 

    if you are looking to get the delivery address on sales order, you can use 'deliveryAddress()' or 'deliveryAddressing()' methods on 'SalesTable'.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 288,513 Super User on at
    RE: How I will get CUSTOMER " DELIVERY address " through code

    Hi @rp@n,

    The addresses are stored in the table LogisticsPostalAddress. This is linked to the DirPartyTable via a location in the LogisticsLocation table. The DirPartyTable is the global address book record which is linked to a legal entity or a customer.

    If you want to know the delivery address, you can link the LogisticsPostalAddress with the table DirPartyLocationRole and then LogisticsLocationRole which contains the values for the address purposes.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,513 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans