Understanding Virtual Entities vs. Dual Write in D365 Finance

  1. What are Virtual Entities?
    1. Main benefits
    2. When to use Virtual Entities
    3. Point of vigilance to consider
  2. What is Dual Write?
    1. Main advantages
    2. When to use Dual Write?
    3. Point of vigilance to consider
  3. Main differences: Dual Write and Virtual Entities
  4. The best of both worlds: a hybrid approach
  5. Conclusion

When integrating D365 Finance with Dataverse, two key options stand out: Dual Write and Virtual Entities. Both connect D365 Finance to other Dynamics 365 applications, but they work differently and meet different business needs. There is no one perfect solution that fits all scenarios, so both options exist. Each has its strengths and disadvantages, so the right choice depends on factors such as data requirements, performance, and business processes.     

Virtual Entities allow you to access D365 Finance data in Dataverse without storing it inside. Instead of synchronizing and duplicating records, Virtual Entities retrieve data directly from D365 Finance in real time whenever needed.    

  • No data duplication: Data is only stored in D365 Finance, which reduces storage costs.  
  • Real-time access: Always shows the most recent data with no synchronization delay.  
  • Lightweight and powerful: no background synchronization process running.  
  • Easier maintenance: no complex integration mapping or replication issues 
  • You need real-time access to D365 Finance data without duplication. 
  • You want to avoid the additional storage costs associated with Dual Write 
  • Your primary use case is reporting and analysis, not master data synchronization.

Virtual Entities allow complete CRUD operations (create, read, update, delete) on D365 Finance data directly in Dataverse, just like native Dataverse tables. However, proper configuration of data entities and relationships in D365 Finance is essential for a smooth experience. 

Dual write is a framework that allows for near real time bi-directional synchronization between Dataverse and D365 Finance. This means that when data is updated in one system, changes are reflected on to the other almost instantly.

  • Seamless synchronization for users: Ensures data consistency across all platforms.  
  • Predefined templates: Microsoft provides ready-to-use integration scenarios.  
  • Bidirectional data flow: changes made in either system is automatically synchronized.  
  • Data integrity: Business validation rules apply in both environments to maintain data integrity. 
  • You need data synchronized between D365 Finance and other Dynamics 365 applications. 
  • You want to use pre-configured templates for easier and faster setup. 
  • You need real-time updates between systems to support business processes.

Although Dual Write is a powerful integration tool, it requires additional storage and can have an impact on performance, especially for high volume data integration scenarios (package of 1000 records and 2 min timeout: https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/dual-write/sync-limits#dual-write-live-synchronization-limits).  

FeaturesDual WriteVirtual Entities
Data FlowBi-DirectionalBi-Directional (CRUD Operations)
StorageData exists in both D365 Finance and DataverseData only in D365 Finance
Ideal scenariosSynchronization of master data, transactional consistency, integration with standard Dataverse tablesReal-time access to D365 Finance data, avoiding duplication and enabling seamless use of Power Platform by users
Complexity of the setupRequires configuration and mappingMinimum setup required
Impact of PerformanceCan introduce latency due to real-time synchronizationEfficient performance but depends on the responsiveness of the D365 Finance system

In some cases, a hybrid approach may be the best choice: 

  • Use Dual Write for data masters (Customers, Vendors, Items) to ensure synchronization between applications.
  • Use Virtual Entities for transactional data (invoices, orders, inventory) where real-time access is required but duplication is unnecessary.

Virtual Entities and Dual Write each have their advantages, and the right choice depends on your business needs. Dual Write is ideal for organizations that need real-time synchronization, while Virtual Entities work best for on-demand access without data replication.         


Comments

Leave a comment