This read-only object contains information about each activity related to an object.
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| ActivityDate | date | Filter |
Indicates one of the following:
This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. The timestamp is not relevant; do not attempt to alter it in order to accommodate time zone differences. |
| ActivityType | picklist | Filter |
One of the following values: Call, Meeting, or Other. |
| CallDisposition | string | Filter |
Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit is 255 characters. |
| CallDurationInSeconds | int | Filter |
Duration of the call in seconds. |
| CallObject | string | Filter |
Name of a call center. Limit is 255 characters. |
| CallType | picklist | Filter |
The type of call being answered: Inbound, Internal, or Outbound. |
| Description | textarea | Nillable |
Description of the task or event. |
| DurationInMinutes | int | Filter |
Length of the event or task. |
| IsAllDayEvent | boolean | Defaulted on create |
If true, the activity is an event and the ActivityDate is used to define the date of the event. If false, the activity may be a task or an event. |
| IsClosed | boolean | Defaulted on create |
For tasks only, indicates whether the task was completed (true) or not (false). This field is set indirectly by setting the Status field--each picklist value has a corresponding IsClosed value. |
| IsDeleted | boolean | Defaulted on create |
Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. |
| IsOnlineMeeting | boolean | Defaulted on create |
Indicated whether the activity represents an online meeting
(true) or not (false).
|
| IsTask | boolean | Defaulted on create |
If true, the activity is a task. If false, it is an event. |
| IsVisibleInSelfService | boolean | Defaulted on create |
If true, the activity can be viewed in the self-service portal. |
| Location | string | Filter |
If an event, the location of the event. If not, the value is null. |
| OwnerId | reference | Filter |
ID of the user who owns the task or event. |
| Priority | picklist | Filter |
If a task, the importance of the task, such as high, normal, or low. |
| Status | picklist | Filter |
For tasks, the current status of the task, for example In Progress or Complete. Each predefined Status field sets a value for IsClosed. To obtain picklist values, you can query() on the TaskStatus object. |
| Subject | combobox | Filter |
Subject line of the task or event. |
| WhatId | reference | Filter | ID of the related object (Account, Campaign, Case, Opportunity, or custom object). |
| WhoId | reference | Filter | ID of the related Contact or Lead. If WhoId refers to a lead, then the WhatId field must be empty. |
SELECT (SELECT ActivityDate, Description from ActivityHistories) FROM Account WHERE Name Like 'XYZ%'
SELECT (SELECT ActivityDate, Description from OpenActivities) FROM Account WHERE Name Like 'XYZ%'
The Salesforce.com user interface enforces sharing rules, filtering out related list items that a user does not have permission to see.
You cannot use query() directly on this object.