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

    [adinserter block="12"]

    Popular Salesforce Blogs

    salesforce reporting

    Top New Features in Salesforce Reporting

    Blog in Analytics

    In this blog, we are going to focus on a couple of the newer features in Salesforce Analytics that have been released over the past…

    Dashboard Components, Grand Totals, Lightning Table, Opportunity Report, Permission Set
    Stimulus Consulting Jul 6, 2020
    5,864  Views
    Journey-Builder-banner

    Latest Trends you may have missed about Salesforce Journey Builder and GA 360

    Blog in Salesforce Products

    Salesforce Journey Builder — In November 2017, Salesforce announced a strategic partnership with Google that brought together two of the world’s leading tech giants. And with deep…

    GA 360, Marketing Automation, Marketing Cloud Implementation, Salesforce Journey Builder, Salesforce Marketing Cloud
    LevelShift (formerly DemandBlue) Mar 7, 2019
    3,310  Views
    Webpages for Nonprofits

    How to Design Webpages for Nonprofits Faster Using Salesforce

    Blog in Salesforce

    How to Design Webpages for Nonprofits Faster Using Salesforce Nonprofits are now looking to create smooth integration between their web pages and the Salesforce platform.…

    Automate Communications, Automatic Email, Brainstorming Session, Client Data, Cloud-based CRM Solutions
    Dan M Aug 26, 2021
    3,920  Views

    Popular Salesforce Videos

    Solving the Fizz Buzz (AMPscript) in Salesforce Marketing Cloud

    Solving the Fizz Buzz (AMPscript) in Salesforce Marketing Cloud

    Video in Marketing, Salesforce Cloud Platform, Salesforce Training

    Cameron Robert from Datarati uses 2 different approaches to solve the Fizz Buzz programming challenge using AMPScript Salesforce Marketing Cloud. What you'll learn: » How…

    Salesforce Tutorial, salesforce, Salesforce Marketing Cloud, Salesforce Video, Salesforce Learning
    Cameron Sep 5, 2025
    1,348  Views
    Salesforce Einstein Prediction Builder and Einstein Next Best Action

    Salesforce Einstein Prediction Builder and Einstein Next Best Action

    Video in Salesforce Einstein

    Salaesforce Einstein Prediction Builder is a declarative tool that helps fast-track predictions based on Salesforce fields. This will help a Salesforce admin to custom-build predictions…

    Salesforce Lightning, Salesforce Einstein, Salesforce Fields, Salesforce Admin, Salesforce Video
    Jogender May 22, 2020
    2,678  Views
    Replicate Salesforce Data in Real-Time with Change Data Capture

    Replicate Salesforce Data in Real-Time with Change Data Capture

    Video in Salesforce Integration

    In this video, we will see how to replicate Salesforce data Migrate your batch processing, scheduled ETL, and nightly workloads to event-driven, real-time integrations using…

    Salesforce Training, Salesforce Tutorial, salesforce, Data Integration, Salesforce Video
    John Mar 12, 2021
    4,340  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.