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

Sales order header entities failed Dual Write for custom fields

(2) ShareShare
ReportReport
Posted on by 126
Hello experts,
 
I am facing an issue with DualWrite and I hope to find solution here. I have modified the SalesOrderHeaderD365SalesEntity:
  1. Added a custom table (DemoSalesTable) in the data source of the entity (Table relation is SalesTable.RecId = DemoSalesTable.SalesTable).
  2. Added fields in the entity & staging table from custom table.
  3. The custom table has fields exposed on Sales order details form.
  4. The mapping of these fields is defined in the data entity fields mapping.
  5. The mapping of these fields is defined in the Dual write table fields mapping.
So, issue is:
  1. When standard fields of SalesTable are modified, DualWrite is syncing both standard and custom fields in the Dataverse
  2. But when custom fields from DemoSalesTable are modified, it is not syncing the sales order in the Dataverse for custom fields.
Steps taken so far:
  1. I have overridden DefaultCTQuery method of SalesOrderHeaderD365SalesEntity in CoC to include DemoSalesTable in its query.
  2. Enabled the custom query change tracking option from data entities list page for SalesOrderHeaderD365SalesEntity.
  3. Manually added a record in BusinessEventsDefinition table for DemoSalesTable & SalesOrderHeaderD365SalesEntity. I am not sure which process is adding records for business event so added record manually.
  4. Stop, Run, Pause DualWrite service for SalesOrderHeaderD365SalesEntity.
  5. Refresh data entities list.
  6. Also tried to use SalesOrderHeaderCDSEntity which is using SalesOrderHeaderV2Entity as a data source. I have modified SalesOrderHeaderV2Entity following the similar steps as described above.
  • Layan Jwei Profile Picture
    8,301 Super User 2026 Season 2 on at
    Hi AR01,
     
    If you go to the dataverse demo table, can you see those new custom fields?
  • AR01 Profile Picture
    126 on at
    Yes, custom fields are there and syncing when standard fields are modified.
  • Layan Jwei Profile Picture
    8,301 Super User 2026 Season 2 on at
    Hi AR01,
     
    If you update the custom fields from CE, does FO get updated with those values?
     
    And can you please take a screenshot of the mapping you did for the custom fields in FO? Maybe it's one direction?
  • Layan Jwei Profile Picture
    8,301 Super User 2026 Season 2 on at
    Hi,

    Do you still need help?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 495 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 432 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 366

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans