ResultSet.getRange.promise(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Method used to asynchronously retrieve a slice of the search result as an array of search.Result objects.

Note:

For information about the parameters and errors thrown for this method, see ResultSet.getRange(options). For additional information about promises, see Promise Object.

Returns

Promise Object

Synchronous Version

ResultSet.getRange(options)

Supported Script Types

Client scripts

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

Governance

10 units

Module

N/search Module

Since

2015.2

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 
...
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 

        

Related Topics

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

General Notices