Amey Holden

View Original

View merged Lead, Contact or Account details in Dynamics 365

Merge functionality for Leads, Contacts and Accounts in Dynamics 365 and Dataverse has been around for a while, if you open the record which was deactivated in the merge process you can see where it was merged into. But from the ‘Master’ row there is no clear indicator that data has been merged from another row into this one, nor what data was merged. You can check the audit history but not all users have permissions to view this area and it can be notoriously slow to load.

Customer : Can you add a note in the timeline to show when a row has been merged into, and also what data has been updated from the deactivated row?

Me : Apparently - yes!

This post focuses on the merging of two Contacts but could easily be modified to work for Accounts and/or Leads too. Roll on down to the bottom for an ended to end image of the flow steps if you need it along the way.

See this content in the original post
See this content in the original post

The Merge function allows you to choose which values you take from the subordinate record before it is deactivated.

The ‘UpdateContent’ message in merge displays all the values taken from the deactivated row in a not human readable format

Reminder to use HTTP with Microsoft Entra ID (preauthorized)

Don’t say that I didn’t remind you!

See this content in the original post
See this content in the original post
See this content in the original post

I know this looks wild generating formula dynamically but seriously it works - even on lookups and choices!

See this content in the original post
See this content in the original post
See this content in the original post
See this content in the original post

Add a note to the timeline of the Active Contact

Finally you can but together all the details into a note on the Contact timeline. It’s a bit busy below but you can see how we are using inputs from the trigger and previous flow steps to formulate this one. The owner of the note will be the user that merged the rows. The note will be added to the active contact which was merged into. Add a new action Microsoft Dataverse > Add a new row

Action Name: AddNoteToActiveRow
Table name: Note
Inputs: (below)

See this content in the original post

And they all lived happily merged for ever after

Add a note in the timeline to show when a row has been merged into, and also what data has been updated from the deactivated row

In case you got lost along the way there is an end to end screenshot of the flow created from the steps above.

And if you scrolled all the way to here I hope you are on your way to leave a lovely comment to say hello also!