Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to delete duplicate records in Salesforce?

    Tagged: Account Object, DML Operations, Duplicate Management, Duplicate Records, Salesforce Objects, Salesforce Records

    • Salesforce® Discussions

      How to delete duplicate records in Salesforce?

      Posted by Ankit on January 10, 2018 at 9:26 AM

      As I have inserted so many duplicate records in my account object could not find a way to update them via DML?

      Archit replied 8 years, 9 months ago 3 Members · 3 Replies
      • Account Object
      • DML Operations
      • Duplicate Management
      • Duplicate Records
      • Salesforce Objects
      • Salesforce Records
    • 3 Replies
    • Piyush

      Member
      January 10, 2018 at 9:47 AM

      Hi Ankit,

      How you identify that the record was duplicate.  Can you please explain more on that.

       

    • [adinserter block='9']
    • Ankit

      Member
      January 10, 2018 at 10:14 AM

      Hi,

      As the values in the fields are same such as their names.

      for reference consider this image,

      Screenshot from 2018-01-10 15-43-24

      Hope this will help!

    • Archit

      Member
      January 10, 2018 at 10:27 AM

      Hello Ankit,

      If you consider duplicate's in terms of name or any particular field of any object might be the below code would be helpful to get your answer. I tried below code to remove duplicate name records of Accounts object.

      List<Account> fullList = [Select Id, name From Account limit 200];
      Set<String> orderObj = new Set<String>(); 
      List<Account> dupList = new List<Account>();
      
      for(Account a : fullList)
      {
       if(orderObj.contains(a.name))
       {
       dupList.add(a);
       }
       else
       {
       orderObj.add(a.name);
       }
      }
      
      delete dupList;
      

      Hope the answer would be helpful!!

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    External File Storage for Salesforce

    Blog in Salesforce

    Salesforce is a great CRM tool, but one issue that companies using the platform may face at some point is limited storage space. You can…

    Authentication Provider, ContentVersion Records, Data Storage, DB Services, Development
    DB Oct 13, 2023
    1,422  Views
    Salesforce Sage ERP Integration

    Salesforce CRM and Sage ERP Integration Just Got Smarter With 5 New Features

    Blog in Salesforce integration

    Salesforce is the #1 Cloud CRM solution with the core modules like customer service, marketing automation, analytics, and application development services. While on the other…

    Application Development Services, Bi-directional Data, Business Processes, Cloud ERP Solution, Connector
    Greytrix Dec 23, 2021
    4,363  Views
    Pardot Summer features

    Our 10 Favorite Salesforce Pardot Summer ’20 Features In The Release

    Blog in Salesforce, Salesforce Releases

    The sun is shining, and you know what means, new notes for the Salesforce summer release! Let’s take some time to acknowledge these fantastic new…

    B2B Marketing Analytics, Campaign Performance, Campaign Records, CRM, Developer Sandbox
    LevelShift (formerly DemandBlue) Jun 15, 2020
    5,142  Views

    Popular Salesforce Videos

    Manage Record Access and Visibility in Salesforce

    Manage Record Access and Visibility in Salesforce

    Video in Salesforce Training

    Watch this video to learn all about managing record access and visibility in Salesforce. Do let us know in the comment section if you have…

    Salesforce Training, Salesforce Tutorial, Salesforce Records, Salesforce Video, Salesforce Learning
    Pooja Nov 18, 2021
    2,204  Views
    Kizzy Consulting - Top Salesforce Partner Intro Video

    Kizzy Consulting - Top Salesforce Partner Intro Video

    Video in Salesforce Stories

    Kizzy Consulting is a Salesforce Consulting Partner and has successfully implemented 100+ Salesforce projects for 100+ clients across sectors like Financial Services, Insurance, Retail, Sales, Manufacturing,…

    Salesforce Sales Cloud, Salesforce Service Cloud, salesforce, Salesforce Marketing Cloud, Salesforce Packages
    Kizzy Consulting Sep 12, 2023
    4,542  Views
    Methods in Salesforce - All You Need to Know

    Methods in Salesforce - All You Need to Know

    Video in Salesforce Apex

    Learn All About Methods in Salesforce. Watch this video and do let us know if you have any doubts or concerns. What is a Method…

    Salesforce Training, Salesforce Tutorial, Salesforce Apex, salesforce, Apex
    SFDC Sep 16, 2022
    3,312  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.