What is the most effective method to verify if person accounts are enabled through Apex Code?
QUESTION I need to be able to check if an org has Person Accounts enabled via Apex Code as part of package. What’s the best way to do this without making the package require Person Accounts be enabled in any org in which it’s installed? ANSWER Method 1 Try to access the isPersonAccount property on an Account and catch any exception that occurs …