+ Start a Discussion
SFDC_LearnerSFDC_Learner 

RecordType through described call

Hi,

 

 

How to get a map<id,String> for RecordType using Described Information.

 

i.e I want to get the RecordTypeId,RecordTypeName map without query and wants to get it through described call?

 

Is this possible?

Avidev9Avidev9
Have a look here http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_sobject_describe.htm

Here are mehtods
1. getRecordTypeInfos
2. getRecordTypeInfosByID
3. getRecordTypeInfosByName
Simon GAZINSimon GAZIN

Hi,


I arrived a little late, but it may help for next


Map<Id, RecordTypeInfo> recTypes = SObject.SobjectType.getDescribe().getRecordTypeInfosById();