Name

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 and Queries

Calls: describeSObjects()

SOQL: SELECT (including the WHERE clause), ORDER BY

Fields

Field Field Type Field Properties Description
Alias string Filter

Nillable

The user alias. Only populated for user rows.
FirstName string Filter

Nillable

If the parent is a user, contact, or lead, the first name.
LastName string Filter

Nillable

If the user is a user, contact, or lead, the last name.
Name string Filter

Nillable

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

Nillable

Restricted picklist

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

Nillable

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 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.

See Also:
Standard and Custom Object Basics
Relationship Queries
© Copyright 2000-2008 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.