function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AbAb 

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 Ab
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