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, ...
Answered

Can't import excel wmsLocation in formula coproducts v2

(1) ShareShare
ReportReport
Posted on by 4
I have added /ReceivingLocationId/ to fromula coproducts v2 entity  entity however I noticed that the location data can be exported but I cannot import these values. After searching I found this question so similar but nobody answered it. I Think I should fill map field to in InventInventoryDimensionEntityFieldsMapping but because it is extension I cannot. Do you have any solution?
 
I have the same question (0)
  • Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at
    You said you added the field, but not what the entity field is bound to. Please add this information.
     
    By the way, what is the AOT name of the entity?
  • Sachin Mittal Profile Picture
    4 on at
    its bound to inventdim datasource already available in entity
    entity name is PmfFormulaCoProductV2Entity
  • Verified answer
    Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at
    InventDim data source is read-only, which is correct, because you can't simply change a value in InventDim table. When you want a different combination of inventory dimensions, you need to find or create a different record in InventDim.
     
    I also don't think you can change the mapping in an extension, but you surely have some options. For example, you can use CoC to extend mapEntityToDataSource(). You'll let the system to assign InventDimId from the mapped dimensions, but then you'll take the other dimensions into account, find/create a new InventDimId and assign it to coProduct.InventDimId.
  • Verified answer
    Sachin Mittal Profile Picture
    4 on at
    [ExtensionOf(tableStr(PmfFormulaCoProductV2Entity))]
    final class PmfFormulaCoProductV2EntityOAB_Extension
    {
         public void mapEntityToDatasource(DataEntityRuntimeContext _entityCtx, DataEntityDatasourceRuntimeContext _dataSourceCtx)
        {
            next mapEntityToDatasource(_entityCtx, _dataSourceCtx);

            switch (_dataSourceCtx.name())
            {
                case dataEntityDataSourceStr(PmfFormulaCoProductV2Entity, FormulaCoProduct):
                    PmfFormulaCoBy coProduct = _dataSourceCtx.getBuffer() as PmfFormulaCoBy;
                    InventDim inventDim = InventDim::find(coProduct.InventDimId);
                    inventDim.wMSLocationId = this.wMSLocationId;
                    coProduct.InventDimId = InventDim::findOrCreate(inventDim).inventDimId;
                    break;
            }
        }
    Thanks  , for suggestion , it worked

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 699

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 582 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 493

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans