Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 7 years, 11 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.

       

    • 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

    application solution

    Popular Salesforce Blogs

    Salesforce-Security

    Salesforce Security – An Encryption Guide For The Paranoid

    Blog in Salesforce Security

    If you are using Salesforce, you would be having a lot of data stored in Salesforce objects. Some of it would be sensitive data, and…

    Apex Programming, Authentication Codes, Crypto Class Method, Custom Encryption Solution, Custom Field Encryption
    Algoworks Jan 18, 2021
    2,985  Views
    Dreamforce 2023 Key Highlights

    Dreamforce 2023 Key Highlights | The Ultimate Guide

    Blog in Others

    On September 12, 2023, the realms of technology and business once again united for the year’s highly anticipated event – Dreamforce 2023. Over 40,000 individuals…

    Calculated Insight Object, Conversational AI Assistant, Customer-Centric Businesses, Data Cloud, Data Cloud Everywhere
    Kizzy Consulting Dec 13, 2023
    1,142  Views

    Why Use Second-Generation Packages in Salesforce?

    Blog in Salesforce Apex

    Do you know about Second-Generation packages? Max Shkrob, Salesforce Developer at Twistellar, gathered all the features and the main differences between 1GP and 2GP. Happy…

    App Launcher, Build Package Versions, Classes and Components, Complex Logic, Dev Hub
    Twistellar Jul 19, 2022
    4,761  Views

    Popular Salesforce Videos

    Login Page Customization | Salesforce Video Tutorial

    Login Page Customization | Salesforce Video Tutorial

    Video in Salesforce Training, Salesforce Admin

    Learn how to customize your login page in Salesforce and create a better-branded experience on this platform. watch and learn. If you have any questions…

    Salesforce Training, salesforce platform, Salesforce Video, Customize, Salesforce Video Tutorial
    SkyPlanner Apr 22, 2021
    1,477  Views
    Permissions In Salesforce Experience Cloud Explained  | Salesforce Communities

    Permissions In Salesforce Experience Cloud Explained | Salesforce Communities

    Video in Salesforce Training

    A permission set is a collection of settings and permissions that give users access to various tools and functions. Permission sets extend users' functional access…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce VIdeos, Salesforce Learning
    Abhishek Dec 6, 2021
    2,929  Views
    14 Questions Asked in 95% Salesforce Interviews

    14 Questions Asked in 95% Salesforce Interviews

    Video in Salesforce Stories

    In this video, Dan Croitor provides a list of 14 questions that are typically asked in Salesforce interviews. He goes over each question in detail,…

    Salesforce Training, Salesforce Tutorial, Salesforce Jobs, salesforce, Salesforce Video
    Rahul kapoor Oct 21, 2022
    3,305  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

    © 2025 - 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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.