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

How to Access Customer's Addresses given Customer Account Number Programmatically via OData

(1) ShareShare
ReportReport
Posted on by 52
Hi everyone! 
 
I am using Microsoft.OData.Client and Microsoft.Dynamics.DataEntities to programmatically access elements from D365 using OData, such as access Sales Orders and creating them. 
 
I would like to access a customer's addresses, with all address information including some customisation fields that we have included. Using the D365 portal, this can be done by viewing all customers, finding the desired customer and clicking on them, viewing their details (there is a subsection called Addresses), clicking Advanced, and a list of all address details are presented as shown below:
 
Using the OData library, how can this information be accessed? I have tried to get the customer object using Customers, CustomersV2, and CustomersV3 Entities, but none of them have a list of addresses that I can access. Is there another way? 
 
Thanks in advance! 
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    307,259 Super User 2026 Season 2 on at
    Hi Mar23,

    There is an entity called CustomerPostalAddress. You can use this one for multiple customer addresses. Ensure that you will extend this entity to be able to use your custom fields.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 495 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 432 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 366

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans