• shah
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

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. 

  • August 29, 2009
  • Like
  • 0

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. 

  • August 29, 2009
  • Like
  • 0