Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Contact cont = new Contact(LastName = 'TestLast');
- insert cont;
- Id defaultRtId = [SELECT RecordTypeId FROM Contact WHERE Id = :cont.Id].RecordTypeId;
- Account a = (Account)Account.sObjectType.newSObject(recordTypeId,true);
- Map<String,RecordTypeInfo> infos = Account.sObjectType.getDescribe()
- .getRecordTypeInfosByDeveloperName();
Add Comment
Please, Sign In to add comment