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 › 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 6 years, 2 months 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
    • 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

    application solution

    Popular Salesforce Blogs

    Unleash the True Potential of Salesforce with Professional Administration Services

    Blog in Salesforce Admin

    There are fair chances that you are sold out on the expansive range of features and benefits that Salesforce offers. However, the issue arises when…

    Business Growth, Business Requirements, certification, Collaborative Relationship, Communication
    Carol Jul 18, 2023
    2,144  Views
    CPQ Consulting

    Things to Consider When Selecting Salesforce Partner in CPQ Consulting

    Blog in Others, Salesforce Products

    Salesforce CRM has become a revelation in terms of increasing company efficiency. Salesforce has streamlined a variety of processes along the way, from balancing the…

    Benefits of CPQ, Business, Case Studies, Certificates, Certified Developers
    Cymetrix May 17, 2021
    2,126  Views
    Change Set

    Deploying Custom Field and Custom Object Through Change Set | Salesforce Developer Guide

    Blog in Others, Salesforce

    In this top salesforce blog, we will be discussing, Deploying Custom Field and Custom Object Through Change set in salesforce. The fields can be sorted…

    Change Set, Component Type, Create a Custom Object, Create Custom Field, Create Custom Object
    Ratnesh Feb 24, 2021
    48,412  Views

    Popular Salesforce Videos

    Gantt Charts in Salesforce Lightning | Salesforce Tutorials

    Gantt Charts in Salesforce Lightning | Salesforce Tutorials

    Video in Salesforce Development

    In this video, you will learn to implement the Gantt Chart in your Salesforce org. We will use Google Gantt Chart scripts and we will…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Developer, Salesforce Lightning
    Kapil Jul 23, 2020
    4,750  Views
    Salesforce Winter '22 Product Release Highlights!

    Salesforce Winter '22 Product Release Highlights!

    Video in Salesforce Products

    Watch this video to learn about the Salesforce Winter '22 Product Release Highlights. 0:00 - Winter Release Preview 0:10 - Pipeline Inspection Enhancements 0:23 -…

    Salesforce Training, Salesforce Tutorial, Salesforce Video, Salesforce Functions, customer service
    Jogender Sep 21, 2021
    1,826  Views
    Integrate Salesforce with External System using REST API

    Integrate Salesforce with External System using REST API

    Video in Salesforce Integration

    In this video, Path to Code explains the following topics: - What is API? - Introduction to REST API - Using cURL to consume Rest…

    Salesforce Training, Salesforce Tutorial, Salesforce Apex, Salesforce Integration, salesforce
    Tulika Wadhwani Oct 31, 2022
    1,698  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

    © 2025 - 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.