QueryResultIterator

Iterate over query results returned by the AJAX Toolkit without invoking queryMore and queryLocator.

  1. The sforce.connection.query method returns a QueryResult object.
  2. A QueryResultIterator object is created and passed the QueryResult object.
  3. The code iterates through the records.