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

    How to Prepare Your Salesforce CRM for Agentforce Adoption

    Blog in Salesforce

    Artificial intelligence is transforming how businesses manage customer relationships, automate workflows, and improve productivity. Salesforce Agentforce helps organizations deploy AI agents that can understand requests,…

    Salesforce Agentforce, Salesforce Agentforce adoption, Salesforce Cloud Platform, Salesforce Data, Salesforce Development
    Dean Oct 29, 2026
    168  Views

    Customizing Salesforce Sales Cloud for Your Unique Business Needs

    Blog in Salesforce

    Introduction Customization holds the master key to the fullest potential of any CRM tool in today's competitive market for business organizations. Where Salesforce Sales Cloud…

    AppExchange Integration, Cloud Computing, CRM, Custom CRM Solution, Customer Satisfaction
    TechForce Jul 18, 2024
    826  Views
    community cloud

    Top 10 New features of Salesforce Community Cloud Summer ’20 Release

    Blog in Others

    Bonjour à tous! What a wonderful time of the year. With the sun shining brightly down, you want to forget everything happening around you and…

    B2B Templates, CMS Collections, Community Cloud, Community Pages, Custom Lightning Component
    LevelShift (formerly DemandBlue) Jun 5, 2020
    3,253  Views

    Popular Salesforce Videos

    What is Sales Cloud in Salesforce? | How it can Help Any business?

    What is Sales Cloud in Salesforce? | How it can Help Any business?

    Video in Sales, Salesforce Cloud Platform

    In this video, Shrey is not only teaching but also demonstrating the concept of Sales Cloud in Salesforce. 1. What is sales cloud in Salesforce?…

    Salesforce Training, Salesforce Tutorial, Salesforce Administrator, salesforce, Salesforce Video
    Abhishek Sep 1, 2021
    2,062  Views
    How Link Cartridge Development Can Your Business Storefront | Salesforce Link Cartridge

    How Link Cartridge Development Can Your Business Storefront | Salesforce Link Cartridge

    Video in Salesforce Training

    LINK Cartridge is a container for packaging and deploying program code and data, it’s structured in folders and subfolders for maximum efficiency.

    Salesforce Training, salesforce, Salesforce Video, Salesforce Learning, Link Cartridge Development
    Cyntexa May 12, 2022
    1,650  Views
    Salesforce Health Cloud

    Salesforce Health Cloud

    Video in Salesforce Cloud Platform

    Salesforce Health Cloud is a health IT CRM system that incorporates doctor-patient relationship and record management services. Through Private Communities, patients can view care plans,…

    Salesforce Implementation, Cloud Computing, Salesforce Cloud, Salesforce Health Cloud, Salesforce CRM
    Jogender Oct 27, 2019
    3,570  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.