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

    Salesforce and Google Expand their Partnership

    Blog in Salesforce Ecosystem

    Google Workspace and Salesforce announced a partnership extension. Companies are going to enhance their AI capabilities. Salesforce and Google announced their teaming up at the…

    Artificial Intelligence, Assign Tasks, Better Business Outcomes, Einstein Copilot, Enhance Productivity
    Sparkybit Dec 7, 2023
    1,140  Views
    Salesforce Editions Comparison

    Salesforce Editions Comparison: Choosing the Right Edition for your Business.

    Blog in Others

    Salesforce offers multiple CRM editions like the Essentials, Professional, Enterprise and Unlimited – each of these Salesforce editions geared towards specific business needs. Designed for small…

    Campaign Management, Case Management, Contact Management in Salesforce, Dashboards in Salesforce, Force.com
    LevelShift (formerly DemandBlue) Aug 9, 2018
    5,565  Views
    Delete Records

    Learn How to Delete Records Using Flows in Salesforce | The Developer Guide

    Blog in Salesforce Apex

    Go to Setup, enter flow in Quick Find then select Flows.  Click on New Flow. From the template, select Screen Flow.  Click on the +…

    API Name, Condition Requirements, Custom Label, Delete Record Element, Delete Records
    Aryan Ujlayan Jul 12, 2022
    5,430  Views

    Popular Salesforce Videos

    Salesforce Consultant | A Day in the life

    Salesforce Consultant | A Day in the life

    Video in Salesforce Consultant

    The Salesforce ecosystem is expected to create over 3.3 million new software jobs by 2022. The demand for people who are willing to learn Salesforce…

    Salesforce Products, Salesforce Developer, Salesforce Consultant, Salesforce Consulting Company, Marketing Automation
    Portia Jan 12, 2020
    2,120  Views
    What is Data Management in Salesforce Admin?

    What is Data Management in Salesforce Admin?

    Video in Salesforce Admin

    Data Loader is a tool to process bulk records and we can process five million records with the data loader.

    Salesforce Training, Salesforce Tutorial, Salesforce Admin, Salesforce Video, Salesforce Learning
    CRS May 20, 2022
    1,990  Views
    Top 5 Benefits of Salesforce Financial Service Cloud

    Top 5 Benefits of Salesforce Financial Service Cloud

    Video in Salesforce Cloud Platform

    Built on the Salesforce Customer Success Platform, Financial Services Cloud includes an enhanced set of features created specifically for client engagement and designed with the…

    Salesforce Training, Salesforce Tutorial, Salesforce Cloud, Salesforce Learning, Salesforce Financial Service Cloud
    Cyntexa Sep 28, 2022
    2,058  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.