Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

PagedData.fetch(options)

{PagedData}.fetch({})

N/search Module
PagedData.fetch()
Method Description: This method retrieves the data within the specified page range. This method also includes a promise version, PagedData.fetch.promise(). For more information about promises, see Promise Object.
Returns: search.Page
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Governance: 5 units
Module: N/search Module
Since: 2016.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=PagedData.fetch(options)

Example:

// Code Example 1
// Add additional code
//...
var mySearch = search.create({
type: search.Type.CUSTOMER,
columns: [
'entityid',
'email'
]
});

var myPagedResults = mySearch.runPaged({
pageSize: 10
});

var thePageRanges = myPagedResults.pageRanges;

// Use PagedData.fetch(options) to retrieve a page of results (as a
// search.Page object) by index
var theData = myPagedResults.fetch({
index: 5
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4486609298.html