+ Start a Discussion
SandrineSandrine 

Get list of record types of accounts accessible for user logged in

Hello,

I want to get the list of record types for accounts available(accessible/alllowed) for the user logged in Apex.

Thanks for suggestion.
Best Answer chosen by Sandrine
Alexander TsitsuraAlexander Tsitsura
Hi Sandrine,

Try to use this soql
RecordType[] allAccessibleRecordTypes = 
     [ 
         SELECT Id, DeveloperName
	       FROM RecordType
          WHERE IsActive = true AND SObjectType='Account'
     ]
As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you.

Thanks,
Alex