DescribeSObjectResult Class Flashcards
getChildRelationships()
Returns a list of child relationships, which are the names of the sObjects that have a foreign key to the sObject being described.
getHasSubtypes()
Indicates whether the object has subtypes. The Account object, which has subtype PersonAccount, is the only object that will return true.
getKeyPrefix()
Returns the three-character prefix code for the object. Record IDs are prefixed with three-character codes that specify the type of the object (for example, accounts have a prefix of 001 and opportunities have a prefix of 006).
getLabel()
Returns the object’s label, which may or may not match the object name
getLabelPlural()
Returns the object’s plural label, which may or may not match the object name.
getLocalName()
Returns the name of the object, similar to the getName method. However, if the object is part of the current namespace, the namespace portion of the name is omitted.
getName()
Returns the name of the object
getRecordTypeInfos()
Returns a list of the record types supported by this object. The current user is not required to have access to a record type to see it in this list.
getRecordTypeInfosByDeveloperName()
Returns a map that matches developer names to their associated record type. The current user is not required to have access to a record type to see it in this map.
getRecordTypeInfosById()
Returns a map that matches record IDs to their associated record types. The current user is not required to have access to a record type to see it in this map.
getRecordTypeInfosByName()
Returns a map that matches record labels to their associated record type. The current user is not required to have access to a record type to see it in this map.
getSobjectType()
Returns the Schema.SObjectType object for the sObject. You can use this to create a similar sObject.
isAccessible()
Returns true if the current user can see this object, false otherwise.
isCreateable()
Returns true if the object can be created by the current user, false otherwise
isCustom()
Returns true if the object is a custom object, false if it is a standard object.