Represents the relationship between
an event and a lead or contacts. This derived object is a filtered version of the EventRelation object; that is, IsParent is true and IsWhat is
false. It doesn’t represent relationships to invitees or to
accounts, opportunities, or other objects.
This object is available in API versions 29.0 and later.
EventWhoRelation allows a variable number of relationships: one lead or up to 50 contacts. Available only if you’ve enabled Shared Activities for your organization.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
| Field Name | Details |
|---|---|
| EventId |
|
| RelationId |
|
| Type |
|
Usage
- Apex example that queries relations to a contact or lead
-
List<EventWhoRelation> whoRelations = [SELECT Id, Relation.Name FROM EventWhoRelation WHERE EventId = '00UD0000005zijD'];