Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Id recordTypeId = Schema.SObjectType.OBJECT_NAME.getRecordTypeInfosByName()
- .get('RECORD_TYPE_NAME').getRecordTypeId();
- Account acc = new Account(Name='Test1', RecordTypeId = recordTypeId);
Add Comment
Please, Sign In to add comment