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, 8 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

    Adding a ‘Sharing’ button in Salesforce Lightning Experience UI

    The 'Sharing' button is not available in the Salesforce Lightning Experience UI: Here's a solution for this!

    Blog in Lightning, Salesforce customization

    In Salesforce Classic - Admins are able to add a standard "sharing" button to most record page layouts - allowing admins to view all of…

    AppExchange Apps, AppExchange Component, Lightning Experience, Lightning Experience UI, Lightning Sharing
    PRANAV Mar 16, 2018
    26,740  Views

    Going Beyond Traditional Implementation Methodologies for Salesforce Service Cloud: A Fireside Chat

    Blog in Salesforce Cloud Platform, Salesforce Implementation

    Salesforce Service Cloud has myriads of capabilities that enable you to ace your customer service game. But optimizing Service Cloud the right way calls for…

    AppExchange, Application Services, Assessment Tool, Best Practices, big data analytics
    Aastha Thakur Jun 17, 2021
    2,982  Views
    What is the Einstein Bot? The Ultimate Guide

    What is the Einstein Bot? | The Ultimate Guide

    Blog in Salesforce

    Chatbots have been revolutionizing the customer experience by providing quick and convenient support to customers. In recent years, the use of chatbots in the business…

    Boost Customer Experience, Business Scale, Chat Implementation, Chat Settings, Chat User
    NAVDITA DAHIYA Apr 6, 2023
    2,682  Views

    Popular Salesforce Videos

    Automate Workflows and Process Intelligence with Nintex Development Services | Salesforce

    Automate Workflows and Process Intelligence with Nintex Development Services | Salesforce

    Video in Salesforce Stories, Salesforce Apex

    Nintex is a leading process improvement, workflow, and automation software platform. In their own words, you can use the Nintex platform to manage, automate, and…

    salesforce, Salesforce Video, Salesforce Learning, Business, Workflow
    Cyntexa Oct 18, 2022
    1,297  Views
    Securing Salesforce Access with Multi-Factor Authentication

    Securing Salesforce Access with Multi-Factor Authentication

    Video in Salesforce Security, Salesforce Training

    It's important to implement strong security measures to protect your business and customers. One of the simplest, most effective ways to help prevent unauthorized account…

    Salesforce Training, Salesforce Video, Salesforce Account, Customers, Salesforce Learning
    Abhishek Jun 17, 2021
    1,889  Views
    How to Set Up Salesforce Knowledge in Service Cloud

    How to Set Up Salesforce Knowledge in Service Cloud

    Video in Salesforce Cloud Platform

    Help your customers and agents find answers they are searching for faster with Salesforce Lightning Knowledge. In this video, we will review: - All components…

    Salesforce Training, Salesforce Tutorial, Salesforce Lightning, salesforce, salesforce knowledge
    Prafull Apr 19, 2021
    3,041  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.