salesforce.describesobjectresult.keyprefix
Home > @runlightyear/salesforce > DescribeSObjectResult > keyPrefix
DescribeSObjectResult.keyPrefix property
Three-character prefix code in the object ID. Object IDs are prefixed with three-character codes that specify the type of the object. For example, Account objects have a prefix of 001 and Opportunity objects have a prefix of 006. Note that a key prefix can sometimes be shared by multiple objects so it does not always uniquely identify an object.
Use the value of this field to determine the object type of a parent in those cases where the child may have more than one object type as parent (polymorphic). For example, you may need to obtain the keyPrefix value for the parent of a Task or Event.
Signature:keyPrefix: string;