Another Salesforce blog!!!

Salesforce, Apex

how to get recordtype id


RecordTypeId  = Schema.SObjectType.Contact.getRecordTypeInfosByName().get('record type name here').getRecordTypeId();  

Leave a Reply

Your email address will not be published.

*