Query.runPaged.promise()

Important:

You must specify a sorting order in the query definition when using this method to avoid duplicate or missing results. The query definition must provide a unique and unambiguous sorting order with a specified precedence.

Method Description

Executes the query asynchronously and returns a set of paged results.

Note:

The parameters and errors thrown for this method are the same as those for Query.runPaged(). For more information about promises, see Promise Object.

Returns

Promise Object

Synchronous Version

Query.runPaged()

Supported Script Types

Client and server scripts

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

Governance

10 units

Module

N/query Module

Parent Object

query.Query

Sibling Object Members

Query Object Members

Since

2018.1

Related Topics

General Notices