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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Exporting all the address for a customer

(0) ShareShare
ReportReport
Posted on by 451

Hi All,

I have a scenario where I need to export all the primary/non primary address for all the customers.

What will be the best approach to handle this as a single customer will have multiple address and those need to be sent as a single record for a customer and so on.

Thanks !

I have the same question (0)
  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi AX Dev,

    You can use the data entity CustomerPostalAddressEntity ("Customer postal addresses") to export addresses of all customers

  • Dev Profile Picture
    451 on at

    Hi ,

    I need to export the address along with customer details.

    For example for customer A I need to export a single record with customer details like accountNum, name and all the addresses.

    Thanks

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    You could create a custom entity based on on CustomerPostalAddressEntity and add the fields you need from Customers. This way you will have multiple rows (based on customer addresses) with the same customer details.

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

    This is not possible with the standard entities. You need to export the addresses via the customer postal address entity. The customer can have 0-n addresses and it's not possible to present such information properly in "single record". That's why the addresses are stored in a separate table and not in the customer table. And that's why there are two separate entities.

    But if you have a strong definition of how that "single record" result would look like, then you can easily extend the customer entity and add the addresses there. 

  • Martin Dráb Profile Picture
    237,904 Most Valuable Professional on at

    We can't understand your requirement until you explain what you mean by "a record".

    If you mean a single file, you can create a composite entity including both customers and their addresses.

  • Dev Profile Picture
    451 on at

    Hi,

    I need to create a file where we have customer details and then all its address without repeating customer data.

    I tried creating composite entity with custcustomerv3  and CustomerPostalAddressEntity  but I guess that is not possible to set relation on the CustomerPostalAddressEntity  entity.

  • Martin Dráb Profile Picture
    237,904 Most Valuable Professional on at

    Making such a composite entity is possible - I did it for one of my clients.

    But you'll need some changes, such as adding RowId and ParentRowId fields to staging tables. Refer to Develop composite data entities for more information.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans