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
alex.gan1.3933003770315437E12alex.gan1.3933003770315437E12 

How can I get Archived task via soql?

could anybody tell me where do they saved?
Thanks!
Jim JamJim Jam
Add ALL ROWS to your SOQL statement to see all deleted and archived records.

For reference ..

https://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_SOQL_query_all_rows.htm
alex.gan1.3933003770315437E12alex.gan1.3933003770315437E12
select count() from task ALL ROWS

it doesn't work in Force.com developer console, there's a err message "Unknown error parsing query"
Jim JamJim Jam
Yes thats right, it works in Apex but not developer console.

see

https://developer.salesforce.com/forums?id=906F00000008teaIAA
alex.gan1.3933003770315437E12alex.gan1.3933003770315437E12
Thanks for your reply, I want to load archived tasks via SOAP API, is it possible?
alex.gan1.3933003770315437E12alex.gan1.3933003770315437E12
Still don't get it, could anybody tell me is it possible to load history tasks via SOQL? (C#, not Apex)