Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to add additional address to SalesTable via data entity?

(1) ShareShare
ReportReport
Posted on by 753
Hello,
 
The requirement was to add an additional address type based on the global address table to the sales order tables.
 
I made this similar to a delivery address by adding a additional relation to LogisticsPostallAddress. Everything works very well and as required. The challenge now is to make it possible to import the additional address through the standard data entity SalesOrderHeaderV3.
Does anyone have any experience or suggestions on how to try to solve this problem? What data entity methods are key here?
 
Thank you.
  • Martin Dráb Profile Picture
    231,947 Most Valuable Professional on at
    How to add additional address to SalesTable via data entity?
    If I was you, I would try to convince them to use a separate entity for the other address rather than trying to put everything into SalesOrderHeaderV3Entity.
     
    But if you want, pay attention to how the delivery address is handled, rather then trying to design the whole thing on your own. First of all, notice that it uses LogisticsPostalAddressBaseEntity. You miss all the logic of LogisticsPostalAddressBaseEntity by trying to use LogisticsPostallAddress directly.
     
    Then look at how it's used, e.g. notice relevant code in findEntityDataSource(), insertEntityDataSource() and a few other places.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,947 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans