Skip to main content

Hello everyone, 

 

I have setup a custom new duplicate rule on contact object in my org. The report of duplicate records shows that we have around 3000 duplicate record sets based on the matching rules. Merging this large number of duplicate records manually is time-consuming. I know there are third-party apps for this case, but wondering if there is an out-of-box in salesforce using Flow or Apex to handle bulk merging? 

 

Thanks. 

2 Antworten
  1. 2. März, 10:43

    Hi @Anas Alamour

    , 

    Salesforce doesn’t have a true out-of-the-box “bulk merge” via Flow—there’s no standard Flow element that performs the same merge you do in the UI. For large volumes (like ~3,000 duplicate sets), the practical native options are: (1) use Duplicate Jobs + the “Compare and Merge” process for human-reviewed cleanup (good for accuracy but still manual), or (2) build automation where Flow orchestrates the work but calls invocable Apex to do the merge. In Apex you can use Salesforce’s duplicate framework to identify candidates (e.g., FindDuplicates)  and then perform merges with the Apex merge DML (note: it merges up to 3 records per call, so bulk cleanups require batching/logic) . If they need “set it and run it” bulk merging with controls, audit trail, and safe rules, that’s exactly why many teams end up using AppExchange/third-party dedupe tools like LeadAngel, LeanData, etc.