Name

Non-queryable object that provides information about foreign key traversals when the foreign key has more than one parent.

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.

Supported Calls

describeSObjects()

Fields

Field Details
Alias
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The user alias. This field contains a value only if the related record is a user.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
The email address of the user or group (queue).
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The first name of the user, contact, or lead.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the related record is an active user (true) or not (false). This field contains a value only if the related record is a user.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The last name of the user, contact, or lead.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.
MiddleName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The middle name of the user, contact, or lead.
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the parent of the object queried. If the parent is a user, contact, or lead, the value is a concatenation of the FirstName, MiddleName, LastName, and Suffix fields of the related record.
Phone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The phone number of the user. This field contains a value only if the related record is a user.
Profile
Type
reference
Properties
Filter, Nillable
Description
The Profile of the user. Only populated if the related record is a user.
ProfileId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user’s Profile. Only populated if the related record is a user.
Suffix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name suffix of the user, contact, or lead.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The title of the user, for example CFO or CEO.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
A list of the types of sObjects 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.
Username
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Contains the name that a user enters to log into the API or the user interface. The value for this field is in the form of an email address, and is only populated if the related record is a user.
UserRole
Type
picklist
Properties
Filter, Nillable
Description
Name of the Role played by the user. Only populated for user rows.
UserRoleId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the user role associated with this object.

Usage

To query on relationships where the parent may be more than one type of object, use who, what, or owner relationship fields.

See Also