Archived Activities

Salesforce archives activities (tasks and events) that are over a year old.

You can use queryAll() to query on all Task and Event records, archived or not. You can also filter on the isArchived field to find only the archived objects. You cannot use query() as it automatically filters out all records where isArchived is set to true. You can update or delete archived records, though you cannot update the isArchived field. If you use the API to insert activities that meet the criteria listed below, the activities will be archived during the next run of the archival background process.

Older Events and Tasks are archived according to the criteria listed below. In the Salesforce user interface, users can view archived activities in several locations.
  • Click View All in the Activity History related list to open the Activity History tab. In the Activity History tab, you can sort entries and open, edit, or delete activities.
  • Click View All in the activity timeline to open the All Activity History list. Up to 2,000 records appear, including archived records. The All Activity History list is ideal for printing.
In the API, archived activities can only be queried via queryAll().
Activity archive criteria:
  • Events with an ActivityDateTime or ActivityDate value greater than or equal to 365 days old
  • Tasks with an IsClosed value of true and an ActivityDate value greater than or equal to 365 days old
  • Tasks with an IsClosed value of true, a blank ActivityDate field, and a create date greater than or equal to 365 days ago

    For more information, see View Archived Activities in Salesforce Help.