function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
scottrmscottrm 

Tasks in storage usage

In the Storage Usage screen under Data Management in Administration it indicates that there are 924,000 Tasks but if I do a SOQL query "select count() from Task" I get only 118,000 records coming back. I am unsure why there is a difference?

Best Answer chosen by Admin (Salesforce Developers) 
Pradeep_NavatarPradeep_Navatar

It seems that archived tasks are not showing up in the SOQL query. Salesforce.com archives older activities according to the conditions below:

 

  • Events with a due date greater than 365 days old
  • Closed tasks with a due date greater than 365 days old
  • Closed tasks without a due date that were created more than 365 days ago

Archived activities can be viewed only in export files, printable view, or by clicking View All on the Activity History related list. You can also view an archived activity if you know the URL for the activity. Administrators can delete archived activities using Mass Delete. Archived tasks are not included in reports. However, you can report on open or completed tasks.

 

Did this answer your question? if so, please mark it solved.