Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

ResultSet.getRange.promise(options)

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=ResultSet.getRange.promise(options) for more information.

N/search Module
ResultSet.getRange.promise()
Method Description: Method used to asynchronously retrieve a slice of the search result as an array of search.Result objects. For information about the parameters and errors thrown for this method, see ResultSet.getRange(options). For additional information on promises, see Promise Object.
Returns: search.Result[]
Supported Script Types: All client-side scripts For more information, see SuiteScript 2.0 Client Script Type.
Governance: 10 units
Module: N/search Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=ResultSet.getRange.promise(options)

Example:

// Code Example 1
//Add additional code
//...
var results = rs.getRange.promise({
start: 0,
end: 1000
})
.then(function(response){
log.debug({
title: 'Completed',
details: response
});
})
.catch(function onRejected(reason) {
log.debug({
title: 'Failed: ',
details: reason
});
})
//...

//Add additional code

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