Announcements
No record found.
Hello community,
I’m working with dual write on a custom entity using the "Purchase Order Headers V2" entity to sync the status of purchase orders between D365 and Dataverse. The overall mapping and initial synchronization are working well; however, I’ve hit an issue with one specific field: PurchaseOrderStatus. This field, which is an enum that can be Backorder, Invoiced, Received, or Canceled, is not triggering dual write correctly.
Here’s the scenario: Changes made in Dataverse are reflecting correctly in D365, for most statuses (Backorder, Invoiced, Canceled), updates from D365 also sync properly to Dataverse, but the problem is with the "Received" status, when I change the status to Received in D365, the update doesn't trigger dual write to reflect the change in Dataverse.
I’ve checked that the mapping is correct and verified that the initial sync and other statuses are working as expected.
Any help or insights would be greatly appreciated!
Thanks! Mario
[ExtensionOf(classStr(PurchTableType))] final class PurchTableType_CUSTOM_Extension { void updateBackStatus() { ttsbegin; if (CUSTOMParameters::find().POStatusVersionFix) { unchecked(Uncheck::XDS) { purchTable.PurchStatus = PurchLine::lowestPurchStatus(purchTable.PurchId); purchTable.SkipVersioning = NoYes::Yes; // Override versioning to allow this update to trigger DW. purchTable.update(); purchTable.SkipVersioning = NoYes::No; // Re-enabled versioning } } next updateBackStatus(); ttscommit; } }
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 694
André Arnaud de Cal... 584 Super User 2026 Season 1
Subra 518