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

How to add new field added to entity to staging table

(0) ShareShare
ReportReport
Posted on by 97

Can someone explain how to get the new field that I added to an entity through an extension into the staging table?  Ultimately I need the value in BYODB.  

I added the field InterCompanyOriginalSalesId from PurchTable to PurchPurchaseOrderHeaderV2Entity as szInterCompanyOriginalSalesId through an extension and now can see it in the entity when looking at the odata query urls.  

How do I get this field added to the staging table for that entity: PurchPurchaseOrderHeaderV2Staging?  I assume I need to extend that table but I'm unclear how to add the fields so that they get mapped to the entity correctly.   TIA!

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You need to create a table extension (just like you created a data entity extension).

    Then simply add a field with same data type and name than your new entity field.

    Once done, and everything is built and synced, you need to refresh entity list in D365, and Generate mapping for this entity in the Data entities form.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi lfulk,

    You will need to add the new field to an extension of PurchPurchaseOrderHeaderV2Staging table, like Nikolaos mentioned. You can check how SalesOrderHeaderV2Entity has an extension SalesOrderHeaderV2Entity.RevRec and the corresponding staging table the new fields added to the entity in the table extension  SalesOrderHeaderV2Staging.RevRec.

  • lfulk Profile Picture
    97 on at

    Hi nmaenpaa, I really appreciate your quick response.  Can you clarify what  you mean by this?

    you need to refresh entity list in D365, and Generate mapping for this entity in the Data entities form.

    Is that just creating a new export project and adding the entity?  I see the field in the mapping details that were automatically generated?  

    I tried this and it seemed to work well for the purchase orders entity.  However, when I did this for another entity (Purchase Orders) that we had added a custom field to, it now errors with: Export execution failed for entity Production orders: Export failed while copying data from staging to target.  I've since deleted my extension of the staging table and rebuilt and synced to database but it's still erroring when trying to export to excel.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi lfulk,

    For refreshing entity list, please do the following -

    1. Go to Workspaces > Data Management.

    2. Open “Framework parameters”.

    3. Under “Data import/export framework parameters”, select fast tab “Entity Settings” and click on “Refresh Entity List”.

    For the error with production orders, can you go to Workspaces > Data Management and open Data entities? Here you can click on "Modify target mapping". On the form you can check the mappings and you can also generate mappings from scratch using the "Generate mapping" button. You can review if there are any errors in mapping which is causing this issue.

  • Moiz Shaikh Profile Picture
    27 on at

    Super

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 660

#2
André Arnaud de Calavon Profile Picture

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

#3
Subra Profile Picture

Subra 489

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans