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
anschoeweanschoewe 

Retrieve Archived Tasks

I'm using the SOAP Api to retrieved all of my task -archived and 'un'-archived.  First, I download all of the Task Ids using SOQL.  Then, I would like to use the very fast EnterpriseConnection.retrieve(...) call to retrieve those Tasks in batches of 2,000.  Sadly, it looks like the retrieve method do NOT retrieve archived tasks older than 12 months.  Is this true.  Whil the documentation for 'retrieve' states it does not retrieve deleted tasks, i was hoping it would retrieved archived tasks.  After all, I'm giving it the exact Id(s).  Can anyone confirm this functionality?  I guess what i really want is the equivalent of queryAll(), like retrieveAll().

I suspect I'll have to stick with SOQL.  I thought using retrieve() would be faster.

Andrew