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

Error in using QueryResult



Am trying to get all the tasks and events (even the previous years records) for a particular object...


For that scenario am trying to use queryall() function...

while using that i used  


String soqltask = "SELECT id, whatid FROM task";
QueryResult qr = connection.queryAll(soqlQuery);


But while using the above am getting an error as  Invalid type: QueryResult.


Can anyone help me how to use the query to get all the tasks for an object and how to use Queryresult..


Thanks in advance,






Check it here|StartTopic=Content%2Fsforce_api_calls_query_queryresult.htm|SkinName=webhelp