This object is used to retrieve information from related records where the related record may be from more than one object type (a polymorphic foreign key). For example, the owner of a case can be either a user or a group (queue). This object allows retrieval of the owner name, whether the owner is a user or a group (queue). You can use a describe call to access the information about parents for an object, or you can use the who, what, or owner fields (depending on the object) in SOQL queries. This object cannot be directly accessed.
Calls: describeSObjects()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| Alias | string | Filter | The user alias. Only populated for user rows. |
| FirstName | string | Filter | If the parent is a user, contact, or lead, the first name. |
| LastName | string | Filter | If the user is a user, contact, or lead, the last name. |
| Name | string | Filter | Name of the parent of the object queried. If the parent is a user, contact, or lead, the value is a concatenation of firstname and lastname fields of the parent object. |
| Type | string | Filter | A list of the types of sObject that can be an owner of this object. You can use this field to filter on a type of owner, for example, return only the leads owned by a user. |
| UserRoleId | reference | Filter | The ID of the user role associated with this object. |
To query on relationships where the parent may be more than one type of object, use the who, what, and owner fields. For more information about these types of queries and the who, owner, and what fields, see Understanding Polymorphic Keys and Relationships.