Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

search.global.promise(options)

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

N/search Module
search.global.promise()
Method Description: Performs a global search asynchronously against a single keyword or multiple keywords. Returns an array of search.Result objects with four columns: name, type, info1, and info2. The parameters and errors thrown for this method are the same as those for search.global(options). For more information on promises, see Promise Object.
Returns: Promise Object
Synchronous Version: search.global(options)
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=search.global.promise(options)

Example:

// Code Example 1
//Add additional code
//...
search.global.promise({
keywords: 'Alan Rath'
})
.then(function (result) {
log.debug({
details: "Completed: " + result
});
// do something after completion
})
.catch(function onRejected(reason) {
// do something on rejection
});
//...
//Add additional code

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