+ Start a Discussion

List of Set up and Non setup objects

Hi all, Can I have a full list of what are setup objects and what are non setup objects?

Is CollaborationGroup is Setup or non setup object?

would I get Mixed DML exception error if I try to insert CollaborationGroup and USer record in the same transaction?

Thanks in advance

ANUTEJANUTEJ (Salesforce Developers) 
Hi Imrohith,

I found the below list in https://www.forcetalks.com/salesforce-topic/what-are-the-setup-and-non-setup-object/#:~:text=Hi%20Saddam%2C,category%20of%20Non%2DSetup%20Objects. I hope this helps and in case if this comes handy can you please choose this as best answer so that it can be useful for others in the future.

Setup Object is:
1. Profiles
2. Users
3. Record Type
Non-Setup Object :
1. Lead
2. Account
2. Contact
4. Any Custom Object

I also found below link for setup objects and connectiongroup is not present in them: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/reference_objects_setup.htm 

Generally mixed dml exception 

Whenever you are getting this error means that two Sobjects(setup & non-setup) that your using in your code can not mix during the same transactions.To avoid this use the the System.runAs block or the @ future method.

robb mallrobb mall
Payslipview is the online portal of Tesco which gives Tesco's employees a digital platform for accessing their Tesco payslips.  https://payslipview.fun