Guest User

Untitled

a guest
Mar 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Id recordTypeId = Schema.SObjectType.OBJECT_NAME.getRecordTypeInfosByName()
  2. .get('RECORD_TYPE_NAME').getRecordTypeId();
  3.  
  4. Account acc = new Account(Name='Test1', RecordTypeId = recordTypeId);
Add Comment
Please, Sign In to add comment