PagedData.iterator()

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Standard SuiteScript 2.0 object for iterating through results

Returns

Iterator object

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

None

Module

N/query Module

Parent Object

query.PagedData

Sibling Object Members

PagedData Object Members

Since

2018.1

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/query Module Script Samples.

            // Add additional code
...
var myCustomerQuery = query.create({ type: query.Type.CUSTOMER
}); myCustomerQuery.columns = [ myCustomerQuery.createColumn({ fieldId: 'entityid' })
]; var myPagedResults = myCustomerQuery.runPaged({ pageSize: 10
}); var iterator = myPagedResults.iterator();
iterator.each(function(resultPage) { var currentPage = resultPage.value; var currentPagedData = currentPage.pagedData; return true;
});
...
// Add additional code 

          

Related Topics

query.Query
N/query Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices