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 › 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 9 years, 8 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

    application solution

    Popular Salesforce Blogs

    Process Builder in Salesforce

    Learn All About Process Builder in Salesforce and Its Features

    Blog in Salesforce Apex

    Would you like to make a record for any item from a work process? Would you like to call your Apex class from a work…

    Business Measures, Canvas, Catch Bar, Client, clone
    rajesh andani Sep 30, 2021
    3,402  Views

    Unlocking Enterprise Success with Salesforce CPQ: 7 Advantages

    Blog in Salesforce integration

    Revolutionize Your Business with Salesforce CPQ Excellence - for Seamless Integration and Success! Elevate your enterprise with Salesforce CPQ Consulting Services by AwsQuality as a…

    Custom Salesforce Reports, Salesforce Consulting Partner, Salesforce Consulting Services, Salesforce CPQ, Salesforce CPQ Services
    AwsQuality Aug 1, 2025
    178  Views

    Salesforce Summer’24 Release for Administrators

    Blog in Salesforce

    In this article, we'll take a look at what changed this summer and what new things now await Salesforce admins when customizing Salesforce CRM. Add…

    Automation Features, Automation Lightning App, CRM Administration, CRM Customization, Custom Fields
    Vimera | Andersen Aug 16, 2024
    531  Views

    Popular Salesforce Videos

    Salesforce Commerce Cloud Migration Key Considerations

    Salesforce Commerce Cloud Migration Key Considerations

    Video in Salesforce Cloud Platform, Salesforce Training

    Embarking on a Salesforce Commerce Cloud migration journey? This extract from our latest webinar outlines the key considerations and best practices to ensure a seamless…

    salesforce, Salesforce Commerce Cloud, Salesforce Video, Commerce Cloud, Latest Webinar
    Cyntexa Nov 24, 2023
    914  Views
    Classes and Objects in Salesforce | Tutorial Video

    Classes and Objects in Salesforce | Tutorial Video

    Video in Salesforce Apex

    The concept of OOPs is really important for any developer who is working with Salesforce or JavaScript, Java, or any other programming language. I have…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Career, Javascript
    SFDC Sep 14, 2022
    1,989  Views
    Create Walkthroughs in Salesforce Lightning Experience

    Create Walkthroughs in Salesforce Lightning Experience

    Video in Lightning

    This video shows you how to create a walkthrough with the In-App Guidance Builder. Then you can create hands-on guided training experiences for in-app onboarding,…

    Salesforce Lightning, Salesforce Lightning Experience, salesforce, Salesforce Video, lightning experience
    Pooja May 28, 2020
    2,106  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.