Tuesday, 9 August 2016

How to get all the RecordType Names and Id of Particular Object using SOQL

SELECT RecordType.Id, RecordType.Name  FROM <SOBJECT NAME>

OR

SELECT Id, Name FROM RecordType WHERE sobjectType = '<SOBJECT NAME>'

1 comment: