Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Result.columns for more information.
N/search Module
Result.columns
Property Description:
Array of search.Column objects that encapsulate the columns returned in the search result row.
Type:
search.Column[] (read-only)
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=Result.columns
Example:
// Code Example 1
//Add additional code
...
var mySearch = search.load({
id: 'customsearch_my_so_search'
});
var firstResult = mySearch.run().getRange({
start: 0,
end: 1
})[0];
log.debug({
details: "There are " + firstResult.columns.length + " columns in the result."
});
firstResult.columns.forEach(function(col){ // log each column
log.debug({
details: col
});
});
...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_452222534179.html