Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Result.getText(options)

{Result}.getText({name: {string},join: {string},summary: {string}})

N/search Module
Result.getText()
Method Description: Used on select, image, and document fields. Returns the text value of a specified search result column. This method is overloaded. You can also use Result.getText(column) to get a column value. This method takes in a single search.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(options)

Example:

// Code Example 1
//Add additional code
//...
var searchResults = mySearch.run().getRange({
start: 0,
end: 100
});
for (var i = 0; i < searchResults.length; i++) {
var amount = searchResults[i].getText({
name: 'amount'
});
var entity = searchResults[i].getText({
name: 'name',
join: 'location'
});
//...
//Add additional code

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