Another Salesforce blog!!!

Salesforce, Apex

get recordtype id, name


SELECT Id, Name,  DeveloperName FROM RecordType WHERE SobjectType = 'obj_name__c'			
			
SELECT Id, RecordtypeId, RecordType.name FROM obj_name__c WHERE Id = '012i00000015pm9AAA'

Leave a Reply

Your email address will not be published.

*