Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=search.Result for more information.
N/search Module
search.Result
Object Description:
Encapsulate a single search result row. Use the methods and properties for search.Result to get the column values for the result row.
Use search.ResultSet for the set of results from a search.
For more information about executing NetSuite searches using SuiteScript, see Searching Overview.
For a complete list of this object’s methods and properties, see Result Object Members,
Supported Script Types:
All script types
For more information, see SuiteScript 2.0 Script Types.
Module:
N/search Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=search.Result
Example:
// Code Example 1
//Add additional code
//...
var mySearch = search.load({
id: 'customsearch_my_so_search'
});
var searchResult = mySearch.run().getRange({
start: 0,
end: 100
});
for (var i = 0; i < searchResult.length; i++) {
var entity = searchResult[i].getValue({
name: 'entity'
});
var subsidiary = searchResult[i].getValue({
name: 'subsidiary'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345767112.html