TaskWhoRelation
Represents the relationship between a task and a lead or contacts.
TaskWhoRelation allows a variable number of relationships: one lead or up to 50 contacts. Available only if you’ve enabled Shared Activities for your organization.
Introduced in API version 29.0.
describeSObjects(), query(), retrieve()
-
Type: reference
-
Properties: Filter, Group, Nillable, Sort
-
Description:
Indicates the Account ID of the relation.
For information on IDs, see ID Field Type.
-
Relationship name: Account
-
Relationship type: relationship
-
Refers to: Account
- Type: reference
- Properties: Filter, Group, Nillable, Sort
- Description: Indicates the ID of the contacts or lead related to the task.
- Relationship name: Relation
- Relationship type: polymorphic
- Refers to: Contact, Lead
- Type: reference
- Properties: Filter, Group, Nillable, Sort
- Description: Indicates the ID of the task.
- Relationship name: Task
- Relationship type: relationship
- Refers to: Task
- Type: string
- Properties: Filter, Group, Nillable, Sort
- Description: Indicates whether the person related to the task is a lead or contact.
Here’s a Java example that queries contacts associated with a task.