Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Result.getValue(column)

{Result}.getValue(column){column: {search.Column}})

N/search Module
Result.getValue(column)
Method Description: Used on formula and non-formula (standard) fields. Returns the value of a specified search result column. For convenience, this method takes a single search.Column Object. This method is overloaded. You can also use Result.getValue(options) to get column values based on the name, join, and summary values for a column.
Returns: The return type depends on the type of search result column that was specified: boolean if the column is a check box field number if the column is a record, list, decimal number, or image field, with the following considerations: For image fields, the returned number represents the ID of the image file. string for all other column types, with the following considerations: For multiselect fields, the returned string represents a comma-separated list of IDs. Each ID represents a selectable option in the field. For date/time fields, the returned string represents the formatted string value of the date. You can use methods in the N/format module to work with this string (for example, converting it to a Date object). For more information, see N/format Module.
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/search Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Result.getValue(column)

Example:

// Code Example 1
//Add additional code
//...
var mySearch = search.load({
id: 'customsearch_my_so_search'
});

var resultSet = mySearch.run();
var firstResult = resultSet.getRange({
start: 0,
end: 1
})[0];

// get the value of the second column (zero-based index)
var value = firstResult.getValue(resultSet.columns[1]);

log.debug({
title: 'Value:',
details: value
});
//...
//Add additional code

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