Skip to content

Instantly share code, notes, and snippets.

@cdeckert
Created June 18, 2012 08:43
Show Gist options
  • Save cdeckert/2947511 to your computer and use it in GitHub Desktop.
Save cdeckert/2947511 to your computer and use it in GitHub Desktop.
Apex-Util
public static Map<String, ID>recordType{ get {
if( recordType== null )
{
recordType = new Map<String, Id>();
for(RecordType r : [Select r.SobjectType, r.Id, r.DeveloperName From RecordType r])
{
recordType.put(r.SobjectType+':'+r.DeveloperName, r.id);
}
}
return recordType;
} set{}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment