I want to obtain record type info like:
List<RecordType> lstrecord = new List<RecordType>([Select id,Name from RecordType where sObjectType = 'Move__c' and Name = 'Draft' ]);
using schema
I want to obtain record type info like:
List<RecordType> lstrecord = new List<RecordType>([Select id,Name from RecordType where sObjectType = 'Move__c' and Name = 'Draft' ]);
using schema
For your specific object you can use:
Schema.RecordtypeInfo devRecordTypeId = Schema.SObjectType.Move__c.getRecordTypeInfosByName().get('Draft');