PagedData.fetch.promise()

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

This method asynchronously retrieves the data bounded by the pageRange parameter.

Note:

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

Returns

Promise Object

Synchronous Version

PagedData.fetch(options)

Supported Script Types

Client scripts

For more information see, SuiteScript 2.x Client Script Type.

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 
...
return pagedData.fetch.promise().then(processPage);
...
// Add additional code 

        

Related Topics

search.PagedData
N/search Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices