Friday, February 7, 2014

Salesforce Archived Activities

One day, a user come to me, "Why I do not see some of my activity history in report, although it is visible in the page layout related list from an object" ?

This is because Salesforce archives activities (tasks and events) that are over a year old. 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

If you are using Data Loader, you need to select Export All instead of Export, and if using other API tool, make sure it call queryAll() instead of query() function.

You can also filter on the isArchived field to find only the archived objects. 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.

Click here for more information on archived activities.

 
| ,