How to get Record Type ID without SOQL in Salesforce Apex ?
To get record type id without SOQL you could use following code :
Id RecordTypeId = Schema.SObjectType.YOUROBJECT.getRecordTypeInfosByName().get('RECORDTYPENAME').getRecordTypeId();
Using this line of code in apex you will be getting the record id of a Record Type Name.
Share this blog with your friends if this post helps you somehow.
Share this blog with your friends if this post helps you somehow.
0 Comments