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

    Using Lambdas to Overcome Salesforce Governor Limits

    Blog in Others

    Salesforce is a great CRM product, but it has some limitations that can prove troublesome depending on the situation. One such limitation is caused by…

    API Destination, API Gateway, AWS Lambda, AWS Services, Connected Apps
    DB Aug 8, 2024
    715  Views

    Right Salesforce Partner Help You to Grow Your Business with Technology

    Blog in Salesforce Consultant

    As we all are familiar with, consulting firms have become the most reliable method for everyone to get their jobs done quickly. Just throw a little…

    Business, Business Conditions, Business Opportunities, Client References, Consultant Firm
    SaaSnic Sep 21, 2020
    2,016  Views
    Process Builder

    Process Builder in Salesforce - Here's What You Need to Know

    Blog in Salesforce Admin, Salesforce Apex

    Process Builder is tool used for automation, it is a part of Salesforce flow, it even helps to automate business process. The build process builder…

    Apex Trigger, Approval Process, Business Process, Components of a Process, Create any Record
    kishan Apr 8, 2022
    3,113  Views

    Popular Salesforce Videos

    Salesforce Einstein Prediction Builder and Einstein Next Best Action

    Salesforce Einstein Prediction Builder and Einstein Next Best Action

    Video in Salesforce Einstein

    Salaesforce Einstein Prediction Builder is a declarative tool that helps fast-track predictions based on Salesforce fields. This will help a Salesforce admin to custom-build predictions…

    Salesforce Lightning, Salesforce Einstein, Salesforce Fields, Salesforce Admin, Salesforce Video
    Jogender May 22, 2020
    2,647  Views
    What are Queues in Salesforce? | How to create queues and assign records to it in Salesforce?

    What are Queues in Salesforce? | How to create queues and assign records to it in Salesforce?

    Video in Salesforce Training, Salesforce Admin

    This video explains Queues in Salesforce by dividing this topic into 5 basic points, which are: 1. What purpose do queues solve? 2. What are…

    Salesforce Admin Training, Salesforce Records, Salesforce Automation, Best Salesforce Tutorials, Salesforce Lead Assignment Rule
    deepti jain Nov 29, 2018
    3,336  Views
    COVID-19 Impact on The Automotive Industry -Digitization With Salesforce Can be a Solution

    COVID-19 Impact on The Automotive Industry -Digitization With Salesforce Can be a Solution

    Video in Salesforce Products

    Coronavirus is expected to create a physical contactless environment with an increased thrust on online assessment and buying of vehicles. This is a huge shift…

    Salesforce Consultant, salesforce, salesforce services, Salesforce Consulting, Salesforce Community
    Kcloud Dec 18, 2020
    1,655  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®.

    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.