sforce logo

queryMore


Retrieves the next batch of objects from a query.

Syntax

QueryResult = sfdc.queryMore(QueryLocator QueryLocator); 

Usage

You use queryMore to process query calls that retrieve a large number of records (more than 2000) in the result set. The query call retrieves the first 2000 records and creates a server-side cursor that is represented in the queryLocator object. The queryMore call processes subsequent records in up to 2000-record chunks, resets the server-side cursor, and returns a newly generated QueryLocator. To iterate through records in the result set, you generally call queryMore repeatedly until all records in the result set have been processed (the Done flag is True).

Sample Code-Java

See the Sample Code-Java for the query call.

Sample Code-C#

See the Sample Code-C# for the query call.

Arguments

Name
Type
Description
queryLocator
Represents the server-side cursor that tracks the current processing location in the query result set.

Response

QueryResult

Fault

InvalidQueryLocatorFault

UnexpectedErrorFault

See Also

query

Sample SOAP Messages-queryMore

Concepts

Changing the Batch Size in Queries


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