How to get record type id with recordtype name in apex

 How to get record type id with recordtype name in apex 


String recordTypeId=Schema.SObjectType.Case.getRecordTypeInfosByName().get('Support').getRecordTypeId();

Comments

Popular posts from this blog

Multi currency in Salesforce - Revenue Cloud Advance - Revenue Lifecycle Management

How to get sessionid and salesforce org base url in salesforce

rollup summary with bulk record handling without hitting governer limits