Is there a statically accessible SObjectType for RecordType?
System.debug(Account.SObjectType); // Result: Account
System.debug(RecordType.SObjectType); // Result: SObjectType
RecordType class explains why RecordType.SObjectType
is different.
I know I can get the Type from an Id:
Id rtId = '012C0000000UrhQ';
System.debug(LoggingLevel.ERROR, rtId.getSObjectType()); // RecordType
But is there also a static accessor, like for all other types?
RecordType.SObjectType
indeed evaluates to aSchema.SObjectField
because there is a FieldSObjectType
onRecordType
. 2.Account.SObjectType
indeed evaluates the specific SObjectTypeAccount
– Robert Sösemann Oct 12 '17 at 10:55