Retrieve the Record Type which are accessible by user’s Profile in Salesforce

List <SelectOption> recTypeList = new List <SelectOption>();
for (RecordTypeInfo info: Case.SObjectType.getDescribe().getRecordTypeInfos()) {
	if(info.isAvailable()) {
		recTypeList.add(new SelectOption(info.getRecordTypeId(), info.getName()));
	}
}

Leave a Reply