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

    External Objects

    External Objects in Salesforce - The Implementation Guide

    Blog in Others, Salesforce, Salesforce Implementation

    External Object is a kind of virtual object which does not exist in your Org. It is a custom object like other custom objects we…

    API Version, App Button, App Name, Consumed Storage, Custom Tabs
    Shweta Nov 5, 2020
    9,371  Views
    Salesforce CPQ

    5 Key Benefits of Salesforce CPQ to Your Sales Team

    Blog in Salesforce Products

    Salesforce CPQ increases the efficiency of the sales team by creating quotes that are curated with the diverse knowledge all brought to one place which…

    Business, Configure Price Quote Software, Consumer Quotes, CPQ Architecture, CPQ Software Tools
    Bolt Feb 7, 2022
    2,896  Views

    Top 6 Qualities of Salesforce Consulting Partners to Look Out For in 2024

    Blog in Others

    When it comes to CRM, anywhere we go in India or across the globe, everywhere we see Salesforce and Salesforce consulting partners We all know what Salesforce…

    AppExchange, Best Salesforce Partner, Blueprint of Process, Compatibility, Consulting Partners
    Codleo Dec 27, 2023
    1,526  Views

    Popular Salesforce Videos

    Salesforce Data Archive along with Files

    Salesforce Data Archive along with Files

    Video in Data

    This video tries to explain the way true archive of records as well as the files in Salesforce. Archive files along with the DataArchiva, We…

    Salesforce Tutorial for Beginners, Salesforce Data Management, Best Salesforce Tutorials, Salesforce Tutorials, Free Salesforce Tutorials
    Abhay May 24, 2018
    4,009  Views
    What is Audit Trail in Salesforce?

    What is Audit Trail in Salesforce?

    Video in Salesforce Admin

    Audit Trails helps to track the recent setup changes that you and other administrators have made to your organization. Watch this video to learn about…

    Salesforce Training, Salesforce Tutorial, Salesforce Online Training, salesforce, Salesforce Video
    CRS Mar 24, 2022
    1,816  Views
    Einstein Analytics – Release Readiness, Spring '18

    Einstein Analytics – Release Readiness, Spring '18

    Video in Salesforce Einstein

    Discover the new and exciting features that you can expect from Einstein Analytics in the Spring '18 Release. These include: - a new enhanced explorer…

    Salesforce Einstein, Salesforce Data Management, Salesforce Data, Salesforce Einstein Discovery, Salesforce Einstein Analytics
    Nauman Feb 23, 2018
    1,459  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.