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
ramya1ramya1 

Error in using QueryResult

Hi,

 

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,

 

 

sivaextsivaext

Hi 

 

Check it here

 

http://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_calls_query_queryresult.htm|StartTopic=Content%2Fsforce_api_calls_query_queryresult.htm|SkinName=webhelp