Search.runPaged.promise(options)

Important:

You must specify a sorting order in the search 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

Runs the current search asynchronously and returns a search.PagedData Object.

Note:

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

Returns

Promise Object

Synchronous Version

Search.runPaged(options)

Supported Script Types

Client and server scripts

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

Governance

5 units

Module

N/search Module

Since

2016.1

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete promise script example, see Promise Object.

          //Add additional code 
...
mySearch.runPaged.promise().then(getPageRangesPromiseChain);
...
//Add additional code 

        

Related Topics

General Notices