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 :
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,160 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans