Blog Layout

Managing Duplicates in Microsoft DataVerse and Dynamics 365

Ryan Smith • December 10, 2024

Dynamics 365 - Managing Duplicates

Smith Tech Tactics - Managing Duplicates.


Smith Tech Tactics Demonstrates an automated Record Merge Approach for Microsoft DataVerse and Dynamics 365.


High Level Overview:

1. Query Active Accounts in DataVerse Account table - FetchXML


2. Take active accounts and their address details replicated over to a SQL table called "Account_Replicate"


3. Identify the duplicate accounts in the replicated table by executing the Stored procedure "

[usp_STT_InsertDuplicateAccountRecords]"


4. Copy the data results of the stored procedure into a new table called "Duplicates".


5. The data copied has all the address and account details with the accountid which will be used later


6. Process the duplicates by invoking an azure logic app which iterates through each child record to be merged into the parent record that was identified by the stored procedure in step 3. The logic app merges the account records.


7. Lastly a stored procedure "[usp_STT_UpdateDuplicates]" is executed to timestamp the records as processed in the duplicate table

Download SQL Files
By Ryan Smith January 14, 2025
Gotcha's - Episode 3
A neon sign of a folder with two arrows pointing in opposite directions.
By Ryan Smith January 7, 2025
Dataverse Gotcha's - Episode 2
A man is carrying a surfboard into the ocean.
By Ryan Smith January 6, 2025
Dataverse Gotcha's - Episode 1
A light bulb is surrounded by puzzle pieces and a check mark.
December 7, 2022
Dynamics 365 - Problem Solving - Plugin Disabling
Two sheep with arrows pointing in opposite directions.
August 22, 2022
Dynamics 365 - Record Cloning
A yellow and blue lightning bolt with two blue arrows.
January 19, 2022
Dynamics 365 Web Hook - Azure Function C#
A man is sitting at a desk in front of three computer monitors.
By Ryan Smith January 18, 2022
Sentiment Analysis : Low-Code Power App
A white robot with blue eyes is looking at the camera
January 13, 2022
Move Aside Clippy!
More Posts
Share by: