Modules
Objects/Functions
SuiteScript 2.0
{search}.load({id: {string},type: {string}})
N/search Module
search.load()
Method Description:
Loads an existing saved search and returns it as a search.Search. The saved search could have been created using the UI or created with search.create(options) and Search.save().
The search.load(options) method also includes a promise version, search.load.promise(options). For more information about promises, see Promise Object.
Returns:
search.Search
Supported Script Types:
All script types
For more information, see SuiteScript 2.0 Script Types.
Governance:
5 units
Module:
N/search Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=search.load(options)
Example:
// Code Example 1
//Add additional code
//...
var mySearch = search.load({
id: 'customsearch_my_so_search'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345775360.html