Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Result.getText(column)

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

N/search Module
Result.getText(column)
Method Description: Used on select, image, and document fields. Returns the text 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.getText(options) to get column text value based on the name, join and summary values for a column.
Returns: string
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.getText(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 text value of the second column (zero-based index)
var value = firstResult.getText(resultSet.columns[1]);

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

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