New answers tagged

2

You run into the Mixed DML error when you try to update setup objects and non-setup objects in the same context. Most of the SObjects we can work with fall into the "non-setup" category, and the User SObject is the most common one you'll find people using in the "setup" category. In most cases, we need to explicitly create our test data. ...


Top 50 recent answers are included