Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Bulk Deleting Merged Duplicate records in Dynamics 365 CRM

Posted on by 45

Hello,

We have more than 2000 contacts which were duplicate and were merged. I did read about deleting merge contacts in CRM but did not found any concrete result.

Is there a way for me to find and bulk delete this inactive merged records together and not deleting them one by one using data management rules.

Thanks,

Zii

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Bulk Deleting Merged Duplicate records in Dynamics 365 CRM

    Hi Prateek,

    The following is two new fields screenshot:

     pastedimage1611883755810v1.png

    pastedimage1611883782785v2.png

    For second and third question:

    Yes, workflow and using two new fields as filter are just like screenshot shown.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Zii Profile Picture
    Zii 45 on at
    RE: Bulk Deleting Merged Duplicate records in Dynamics 365 CRM

    Hi Leah Ju,

    Thanks for responding on this. I am not sure I understood this 'So you can create two new fields(one type is two options and another is lookup), then add them to form and view you need, and use workflow to copy their value to paste to new fields, then you can use two new fields value as condition to filter merged records'

    1. Can you tell me what were the fields you created? or share a screenshot? Like one was Merge contact = yes and no and what was the other field?

    2. Use workflow to copy their value to paste to new fields? - Is this the screenshot you shared?

    3. then you can use two new fields value as condition to filter merged records? - again is the as above screenshots?

    Thanks,

    Zii

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Bulk Deleting Merged Duplicate records in Dynamics 365 CRM

    Hi Prateek,

    Once you merge, through the CRM UI, advanced find, there is no flag of this except the deactivated record.

    In fact, CRM has two fields: Merged and Master ID actually, but those fields are mainly for internal user, CRM did not expose it out.

    pastedimage1611813029958v1.png

    pastedimage1611813342977v2.png

    So you can create two new fields(one type is two options and another is lookup), then add them to form and view you need, and use workflow to copy their value to paste to new fields, then you can use two new fields value as condition to filter merged records.

    Go Settings > Process to create an on-demand workflow.

    pastedimage1611813979962v4.png

    pastedimage1611813939757v3.png

    Save and Active the workflow.

    Test:

    I merged these two contact records, then i go to inactive view to select all contacts and expand flow to run the workflow just created.

    pastedimage1611815081253v5.png

    Wait several minutes and refresh current view, you will see following screenshot:

    pastedimage1611815265031v6.png

    Then you can set 'copy Merged equal yes' and 'copy Masterid contains data' as filter.

    pastedimage1611815741133v8.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: Bulk Deleting Merged Duplicate records in Dynamics 365 CRM

    Hi Zii,

    There are multiple reasons not to delete records in CRM rather just deactivate them. It prevents the history, maintains the Audit, and enables to go you back to check if some information was missed.

    Also, deletion of inactive records isn't necessary - you can just hide them from all the views.

    Having said that, you can always write bulk deletion job to delete inactive record...something like this:

    Go to Setting->data management:

    pastedimage1611794330027v1.png

    Go to bulk record deletion

    pastedimage1611794379994v2.png

    Click new:

    pastedimage1611794419934v3.png

    IN Bulk Deletion Wizard, give your input - it might be something like this. You can add modifiedon filter if needed

    pastedimage1611794526075v4.png

    Put a time to run..even just after a min..

    pastedimage1611794561412v5.png

    And the job will delete the inactive records.

    Thanks,

    Prateek

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans