What is Mixed DML Operation Error?
When Setup and non-setup objects are used in the same transaction for DML operation, we get this error.
This is mainly because setup objects are used for the access levels of the non-setup object records.
If we are modifying a user role and account in the same transaction we get this error.
No comments: