Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Map<String, Id> recordTypeIdMap = new Map<String, Id>();
  2. for (RecordType rt : [SELECT Id, DeveloperName FROM RecordType WHERE sObjectType='Contact']) {
  3. recordTypeIdMap.put(rt.DeveloperName, rt.Id);
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement