How to fetch all record types in Salesforce?

SOQL:

SELECT Id, Name, DeveloperName, SobjectType FROM RecordType

Object name is RecordType.

Apex:

List<RecordType> RTList = [SELECT Id, Name, DeveloperName, SobjectType FROM RecordType];


No comments:

Post a Comment