0

I need to know if some sObject is setup object during runtime from apex code. Does anybody know how to do it? I checked the documentation on sObject class and didn't find it.

1 Answer 1

0

Are you asking that you need to identify whether object is standard or custom? If yes, then you can check whether your object name is suffixed with '__c' or not.

1
  • No. I mean setup or non-setup object. If I use in one transaction setup and non-setup objects with dml operations on them I get mixeddmloperation error. May 22, 2015 at 9:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .