SOQL Pagination for Salesforce API queries

Posted by Daniel Ballinger on Stack Overflow See other posts from Stack Overflow or by Daniel Ballinger
Published on 2009-10-02T01:34:27Z Indexed on 2010/06/01 1:23 UTC
Read the original article Hit count: 641

Filed under:
|
|

Is there an efficient way to page through results from a SOQL query without bringing all the query results back and then discarding the majority of them?

As an example, I'd like to be able to to page through the complete list of contacts showing 10 records at a time. I don't have the need to sort by any particular field.

© Stack Overflow or respective owner

Related posts about pagination

Related posts about salesforce