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

    API Versions

    API Versions in Salesforce - All You Need to Know

    Blog in Others, Salesforce

    As a feature of a controlled Metadata API delivery and source control procedure, it is essential to see how API forms impact functioning examples, particularly…

    Apex Trigger, API Adaptation, API Form, API Forms, API Rendition
    Pooja Apr 22, 2021
    4,362  Views
    UI Testing Automation

    The 202 of UI Testing Automation Model from Salesforce

    Blog in Salesforce

    Testing apps is critical to ensure that they are of top-notch quality. And to test applications, one type of testing you can trust is end-to-end…

    Automated UI Testing Tool, Automation Model, Blog, Document Object Model, DOM
    Grazitti Sep 15, 2022
    3,434  Views

    How to Optimize Your Salesforce Org's Performance and Productivity

    Blog in Salesforce

    Your company may have had Salesforce for some time already, having poured financial and human resources into its maintenance. There are several clouds, plenty of…

    AppExchange Apps, AppExchange Tools, audit, Chrome Extension, Configuration
    Twistellar Nov 24, 2022
    2,351  Views

    Popular Salesforce Videos

    Salesforce Lightning Development Tutorial - Lightning Components in Visualforce

    Salesforce Lightning Development Tutorial - Lightning Components in Visualforce

    Video in Others

    Salesforce Lightning Custom Component Development Tutorial for Beginners Learn how to embed lightning components in a Visualforce page. 3 Steps Add apex:includeLightning tag in your…

    Salesforce Tutorial for Beginners, Salesforce Visualforce Page, Salesforce Lightning App, Salesforce Lightning Component, Javascript
    Neha Yadav Dec 9, 2019
    8,509  Views
    5 Mind-Blowing New Salesforce Marketing Cloud Releases

    5 Mind-Blowing New Salesforce Marketing Cloud Releases

    Video in Marketing, Salesforce Cloud Platform

    The Statist worldwide marking survey reports- “Almost 4 billion world population is digitally active, and 2.14 of them are shopping online.” In this entire scenario,…

    Artificial Intelligence, Salesforce Marketing Cloud, Customer Engagement, Internet of Things, Salesforce Video
    Algoworks Feb 23, 2021
    1,984  Views
    Handle Events in Lightning Web Components | Salesforce Tutorial

    Handle Events in Lightning Web Components | Salesforce Tutorial

    Video in Lightning, Salesforce Training

    Watch this video and learn about the following: Create an app that includes multiple components. Describe the file structure of a complex component. Handle events.

    Salesforce Training, Salesforce Tutorial, Salesforce Video, Lightning Web Components, Salesforce Learning
    Rupal Kakkar Jun 24, 2021
    2,091  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.