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
witoutme247witoutme247 

Batch apex and archived activities

I have a batch apex - this queries the task table.

I need th query to return all activities till date - including archived activities. The API has a queryALL call that does this, but I haven't found a similar one in apex. Adding ALL ROWS to the end of the SOQL query doesn't work

Any help will be greatly appreciated. Thank you

-VJ

PS: this query is inside the execute method.

Akash PuneraAkash Punera
ALL ROWS gives archived activities