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

    Document Generation in Salesforce with Nintex DocGen via Apex Code

    Document Generation in Salesforce with Nintex DocGen via Apex Code

    Blog in Salesforce Implementation

    Hello All, Welcome to another part of Nintex Document Generation in salesforce and this gonna be code-based. Before going to dive into it, I request…

    Document Generation, Document generation in salesforce, Drawloop, Nintex with apex, Nintex with API
    Ankit Mar 23, 2018
    13,560  Views
    Salesforce Einstein Vision

    Salesforce Einstein Vision | Enhancing Workflow with Image Processing

    Blog in Salesforce Einstein

    Artificial Intelligence is not just about data analytics and machine learning. AI has advanced into cognitive abilities in a big way that the only thing…

    API, Artificial Intelligence, CRM, Data Analytics, Einstein Image Classification
    LevelShift (formerly DemandBlue) May 14, 2020
    2,775  Views
    Salesforce Agentforce in 2026-How AI Agents Are Transforming CRM

    Salesforce Agentforce in 2026: How AI Agents Are Transforming CRM

    Blog in Salesforce

    Most CRM systems store information well but don't act on it. Reps still open records, dig through notes, and log follow-ups by hand. Service agents…

    Agentic AI, AI Agents, AI in CRM, AI Technology, AI-Powered CRM
    Shivam Sep 9, 2026
    267  Views

    Popular Salesforce Videos

    What is Process Builder in Salesforce? Explained Distinctly

    What is Process Builder in Salesforce? Explained Distinctly

    Video in Salesforce Admin

    Process Builder Salesforce is an automated Salesforce tool which allow you to control the order of action. Watch this video and learn all about it,…

    Salesforce Training, Salesforce Online Training, Salesforce Certification, salesforce, Process Builder
    CRS Apr 13, 2022
    5,133  Views
    Salesforce Service Cloud Telephony

    Salesforce Service Cloud Telephony

    Video in AppExchange

    Natterbox CTI and Telephony inside Salesforce ServiceCloud. Transform your telephony experience and empower your agents with fast and personalised support.

    Salesforce Service Cloud, Salesforce Cloud, Best Salesforce Tutorials, Salesforce Service Cloud Training, Salesforce Service Cloud Demo
    Ian Feb 20, 2019
    2,074  Views
    What it Means to be a Salesforce Developer

    What it Means to be a Salesforce Developer

    Video in Salesforce Training, Salesforce Development

    In this video, Salesforce with Polina describes what it means to be a Salesforce Developer. She goes on to describe the different types of Salesforce…

    Salesforce Training, Salesforce Tutorial, Salesforce Developer, Salesforce Consultant, salesforce
    Tulika Wadhwani Sep 28, 2022
    1,946  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.