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

Can't import excel wmsLocation in purchase requisition

(0) ShareShare
ReportReport
Posted on by 290

I have added "ReceivingLocationId" to purchase requisition line 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?

8780.Screenshot-2021_2D00_06_2D00_23-125148.png

I have the same question (0)
  • WillWU Profile Picture
    22,363 on at

    Hi Nastaran.

    Did you try to create a new custom data entity with the fields you want?

  • Nastaran Profile Picture
    290 on at

    Hi Will,

    Yes I had to do that only for adding one field.

  • André Arnaud de Calavon Profile Picture
    305,182 Super User 2026 Season 1 on at

    Hi Nastaran,

    Can you share how you have added the new column to the entity? Which steps did you perform?

  • Nastaran Profile Picture
    290 on at

    Hi Andre,

    I only drag wmslocationId to the fields from inventdim which is in the datasource of the entity. Then I add this field to the staging table. After that, I build the project and refresh the entity list.

    However, I think it is necessary to add mapping for fields that are in the invent dim for importing excel.

  • Nastaran Profile Picture
    290 on at

    Dear will wu,

    I still have not got my answer! why have you verified your answer?

  • WillWU Profile Picture
    22,363 on at

    Hi Nastaran,

    Sorry, I just checked your reply and researched it, probably by mistake, I didn't notice. I have rejected the answer.

  • André Arnaud de Calavon Profile Picture
    305,182 Super User 2026 Season 1 on at

    Hi Nastaran,

    Were you able to solve your issue or do you still need some help on this question?

  • Nastaran Profile Picture
    290 on at

    Hi Andre,

    I have applied another way, I mean I created new Entity. However, It is still my question that is there any way to customize system entities for adding new inventory dimension?

  • Sachin Mittal Profile Picture
    4 on at
    I met with a similar requirement did you find any solution to this? please help.
  • Sachin Mittal Profile Picture
    4 on at
    /// <summary>
    /// PmfFormulaCoProductV2Entity_Extension
    /// </summary>
    [ExtensionOf(tableStr(PmfFormulaCoProductV2Entity))]
    final class PmfFormulaCoProductV2Entity_Extension
    {
        /// <summary>
        /// mapEntityToDatasource
        /// </summary>
        /// <param name = "_entityCtx">DataEntityRuntimeContext</param>
        /// <param name = "_dataSourceCtx">DataEntityDatasourceRuntimeContext</param>
        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;
            }
        }
    
    }
    you can use this code , it works

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 694

#2
André Arnaud de Calavon Profile Picture

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

#3
Subra Profile Picture

Subra 518

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans