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 › What are the setup and non-setup object?

    Tagged: Account, Contact, Custom objects, Lead, Non-Setup Objects in Salesforce, Test Class

    • Salesforce® Discussions

      What are the setup and non-setup object?

      Posted by Saddam on September 11, 2019 at 2:55 PM

      What are the setup and non-setup object?

      Laveena replied 7 years ago 4 Members · 3 Replies
      • Account
      • Contact
      • Custom objects
      • Lead
      • Non-Setup Objects in Salesforce
      • Test Class
    • 3 Replies
    • Piyush

      Member
      September 12, 2019 at 3:36 AM

      Hi Saddam,

      • Setup Object is:
        1. Profiles
        2. Users
        3. Record Type
      • Non-Setup Object :
        1. Lead
        2. Account
        2. Contact
        4. Any Custom Object
    • [adinserter block='9']
    • Nikita

      Member
      September 12, 2019 at 6:36 AM

      Hi Saddam,

      SetUp Objects:Setup objects are objects that are used to interact with the metadata. Common example is the User, Profile, Layout object.

      Non-SetUp Object: Every other objects like those which are native(Standard Objects) and Custom Objects fall into the category of Non-Setup Objects.

      One important note is that we cannot perform DMLs on setup and non-setup objects in the same transaction. Workaround is that you need to use asynchronous requests (@future) or use batch as it runs in its own system context.

      In the test class, you can use System.RunAs with two different users to separate out transactions for setup and non-setup objects.

    • Laveena

      Member
      September 12, 2019 at 7:04 AM

      Hi Saddam,

      A "setup" object is one that must be edited from the setup or builder area of the platform.

      Setup objects are

      * User

      * RecordType

      * Profile

      etc

      and all other general objects i.e.

      * Contact

      * Account

      * Lead

      etc

      are the None setup objects.

      If you run a DML operation on setup object you can't run a DML operation on None setup object in the same context, it will show the "Mixed_DML_operation" error.

      For example, you cannot insert an account and then insert a user or a group member in a single transaction.

      Salesforce don’t allow you to run.

      Thanks

    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 Einstein Analytics Studio

    Salesforce Einstein Analytics Studio

    Blog in Salesforce Einstein, Salesforce Implementation, Salesforce Products

    Analytics Studio A part of Einstein analytics and a best way to import data either through internal or external sources of salesforce. By using csv file,…

    Dataset Builder, Dataset in Salesforce, Einstein Analytics Studio, myOpportunities, Salesforce Einstein
    Archit Jan 9, 2018
    16,295  Views
    [ Part - 4 ] Google Sheet Automation for Salesforce Data Pull-Push Using G-connector

    Google Sheet Automation Process for Salesforce Data Pull/Push Using G-connector - Part 4

    Blog in Salesforce integration

    Hi All, Welcome Back --- to another blog related to the G-Connector for Salesforce. A recap for newbies  In my first blog of "G-Connector for…

    Enabler4Sheets, G-Connector, G-Connector for Salesforce, Google G-Connector, Google Sheet
    PRANAV May 29, 2018
    15,127  Views

    Why Businesses Are Investing in AI Chatbot Development Services in 2026

    Blog in AI and ML

    With the increasing customer expectations and the digital interactions being the major mode of interaction, companies in 2026 are turning to the development services of…

    AI Chatbot Development Services
    Melonleaf Jan 20, 2026
    990  Views

    Popular Salesforce Videos

    Why Salesforce is in Demand? What is Salesforce? Salesforce Developer Jobs And Salary in 2022

    Why Salesforce is in Demand? What is Salesforce? Salesforce Developer Jobs And Salary in 2022

    Video in Salesforce Development

    In this video, Career Tips With Poonam discusses Salesforce job opportunities, what Salesforce is, Salesforce Developer Jobs and Salary in 2022 and much more.

    Salesforce Training, Salesforce Tutorial, Salesforce Jobs, Salesforce Developer, What Is Salesforce
    Mayra Dec 21, 2022
    1,782  Views
    Accenture Salesforce Training 2022

    Accenture Salesforce Training 2022

    Video in Salesforce Training

    This video is about -Accenture Salesforce Training 2022 Orientation session and ASE SFDC Salesforce Certification. As the trusted leader in Salesforce implementation and transformation, Accenture can…

    Salesforce Training, Salesforce Certification, Salesforce Developer, Salesforce Implementation, Salesforce Video
    Rahul kapoor Aug 12, 2022
    2,456  Views
    Salesforce Summer '18 Release

    Salesforce Summer '18 Release

    Video in Salesforce Products

    I can’t believe Summer ’18 is already here in no time. I don’t know about all of you, but I still have my winter stuff…

    Salesforce Products, Salesforce Lightning Experience, Salesforce Einstein, Machine Learning, Salesforce Release Management
    Shiv Kumar Sharma May 5, 2018
    2,134  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.