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 › is there any way through which we can upsert list of list of accounts?

    Tagged: Account, List, Salesforce Apex, Salesforce Error, Salesforce sObject, Salesforce SOQL

    • Salesforce® Discussions

      is there any way through which we can upsert list of list of accounts?

      Posted by Nitish on April 30, 2016 at 6:01 PM

      I want to update list of list of account. I am getting list of accounts from many sources, now i want to update them.

      list<list<sObject>> la=new list<list<sObject>>();
      la.add(accountList1);
      la.add(accountList2);
      upsert la;
      Its throwing an error, is there any way through which we can upsert list of list of accounts?

      Himanshu replied 10 years, 5 months ago 2 Members · 1 Reply
      • Account
      • List
      • Salesforce Apex
      • Salesforce Error
      • Salesforce sObject
      • Salesforce SOQL
    • 1 Reply
    • Himanshu

      Member
      May 25, 2016 at 8:56 AM

      Hi Naman,

      You can use this to upsert the list of accounts.

      List<Account> acc = new List<Account>();
      for (List<Account> aList : listOfLists)
      acc.addAll(aList);
      upsert acc;

      Hope this helps you.

    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

    Unleashing Potential: A Strategic Roadmap to Salesforce Staff Augmentation

    Blog in Others

    In the vast landscape of business evolution, there exists a compass that navigates the treacherous waters of innovation and efficiency—Salesforce staff augmentation. This strategic beacon…

    Augmented Staff, Captain, Communication Gaps, Communication Storms, Effective Communication
    360degreecloud Salesforce Feb 1, 2024
    1,675  Views
    Salesforce Operations

    6 Types of Salesforce Operations to Be Familiar With

    Blog in Salesforce

    Understanding the different types of Salesforce operations increases user productivity, boosts customer satisfaction and ensures that you are building in line with the best practices…

    Auto Launched Flows, Automation Rules, Best Practices for Salesforce, Best Productivity, Business
    Aziz Nicleson Nov 17, 2021
    3,535  Views

    How to Become a Successful Salesforce Developer: A Comprehensive Guide

    Blog in Others

    Gaining the necessary abilities can lead to a variety of employment prospects in the rapidly expanding field of Salesforce development, as the demand for Salesforce…

    Become a Salesforce Developer, Salesforce Apex Code, Salesforce Apex Programming, Salesforce Best practices, Salesforce career growth
    AwsQuality Oct 1, 2024
    737  Views

    Popular Salesforce Videos

    MuleSoft Integration: GoToWebinar to Salesforce - Learn Salesforce Series

    MuleSoft Integration: GoToWebinar to Salesforce - Learn Salesforce Series

    Video in Others, Salesforce Integration, Salesforce Training

    In this video, you will learn how to use MuleSoft integration platform to transfer attendees data from GoToWebinar to Salesforce- 1. Set up GoToWebinar account,…

    Salesforce Development, salesforce, salesforce services, Salesforce Video, MuleSoft Integration
    Algoworks May 20, 2020
    2,837  Views

    Accelerate Revenue by Simplifying Partner Data Exchange

    Video in Data

    Adeptia Webinar :: Self-service approach to set up secured B2B data exchanges. Allowing IT to focus on governance for ensuring compliance, security, and control.Reducing IT…

    Data Integration, B2B Integration
    Prince Mar 22, 2018
    2,271  Views
    Lesser Known VSCode Tips for Salesforce Developers

    Lesser Known VSCode Tips for Salesforce Developers

    Video in Salesforce Stories

    More Code, Less Work. Whether you are a beginner or an advanced developer, smart tips, and sharp tools can significantly improve your productivity. There are…

    Salesforce Training, Salesforce Developers, Salesforce Video, Salesforce Learning, VSCode
    Rupal Kakkar Nov 13, 2020
    1,721  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.