You need to sign in to do that
Don't have an account?

Extract Profile-to-Recordtype association using apex
Hi,
I understand that using Salesforce UI, we can associate certain record types (of an object) to a particular user profile. Once that is set, is there a way to extract that information using apex code?
For example:
Account object has 2 record types (Individual & Business)
Profile "Western Sales Rep" has access to only "Business" record type.
From Apex code, how can I identify the record types for a given profile and object?
Thanks.
You can access this type of information from the Metadata API but it is declarative in nature. Unfortunately it is not available via Apex.
Jeff Douglas
Appirio, Inc.
http://blog.jeffdouglas.com
All Answers
You can access this type of information from the Metadata API but it is declarative in nature. Unfortunately it is not available via Apex.
Jeff Douglas
Appirio, Inc.
http://blog.jeffdouglas.com