PagedData.fetch.promise(options)

Method Description

Asynchronously retrieves a page in the set of pages included in the PagedData object.

Returns

Promise Object

Synchronous Version

PagedData.fetch(options)

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

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.index

number

required

The index of the page to retrieve.

Page indexes start at 0.

Errors

Error Code

Thrown If

INVALID_PAGE_INDEX

The value of the options.index parameter is not a number.

INVALID_PAGE_RANGE

The value of the options.index parameter is a negative number or is greater than or equal to the number of pages in the PagedData object.

Related Topics

General Notices