Newer Version Available

This content describes an older version of this product. View Latest

Query Options Header

The Query Options header is a request header applied when using the Query resource. Use this header to specify options used in the query, such as the query results batch size.

Header Field Name and Values

Field name
Sforce-Query-Options
Field values
  • batchSize—A numeric value that specifies the number of records returned for a query request. Child objects count toward the number of records for the batch size. For example, in relationship queries, multiple child objects may be returned per parent row returned.

    The default is 2,000; the minimum is 200, and the maximum is 2,000. There is no guarantee that the requested batch size will be the actual batch size; this is done to maximize performance.

Example
Sforce-Query-Options: batchSize=1000