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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Extend InventInventoryDimensionEntityFieldsMapping map to add new field mapping

(2) ShareShare
ReportReport
Posted on by 6
Hello, I am trying to extend InventInventoryTransferJournalEntryEntity entity and that entity uses InventInventoryDimensionEntityFieldsMapping map to map the inventory dimensions. I have a requirement now to add new fields to the data entity. These new fields are the generic inventory dimensions like InventDimension1, InventDimension2, etc that my client uses. I could not find the standard interface to this map to extend. What would be the better approach to extend this map? 
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,398 Super User 2025 Season 2 on at
     
    maps are not extensible. so you cannot directly add fields or methods to it.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Martin Dráb Profile Picture
    237,904 Most Valuable Professional on at
    It seems that you don't really want to extend the map; you want to extend the entity a map fields of the map (such as InventDimension1) to custom fields added to the entity. Nevertheless it isn't supported either.
     
    Instead, you'll need to extend code and get InventDimId for the dimension values by yourself. If you look at what the map does (in InventInventoryDimensionEntityFieldsMapping.resolveInventDim()), you'll see that it's nothing complicated. It simply assigns values of InventDim fields and calls InventDim::findOrCreate(). You can do that in your code too. The entity calls the logic in mapEntityToDataSource().

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 > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 284 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 178 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans