sforce logo

QueryResult


The query call returns a QueryResult object, which has the following properties:

Name
Type
Description
queryLocator
String. Used in queryMore for retrieving subsequent sets of objects from the query results, if applicable.
 
Represents a server-side cursor. Note that an salesforce.com account can have up to five (5) query cursors open at a time.
done
boolean
Indicates whether additional rows need to be retrieved from the query results (False) using queryMore, or not (True). Your client application can use this value as a loop condition while iterating through the query results.
records
Array of sObjects representing individual objects of the specified object and containing data defined in the field list specified in the queryString.
size
int
Total number of rows retrieved in the query. Your client application can use this value to determine whether the query retrieved any rows (size > 0) or not (size = 0).


© Copyright 2000-2003 SalesForce.com, Inc.
All rights reserved • Various trademarks held by their respective owners.