Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Search.settings

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Search.settings for more information.

N/search Module
Search.settings
Property Description: Search settings for this search as an array of search.Setting objects or a string array of column names. Search settings let you specify search parameters that are typically available only in the UI. You set this value with an array of search.Setting objects or a single search.Setting object. You can create a search.Setting object by calling search.createSetting(options). You can also set this value with an array of column names, each of which is a string. The supported values for a search.Setting object differ depending on the search parameter that you set. For more information, see Setting.name and Setting.value.
Type: search.Setting[] | string[]
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/search Module
Since: 2018.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Search.settings

Example:

// Code Example 1
//Add additional code
//...
var mySearch = search.create({
type: 'transaction',
columns: [ 'trandate', 'amount', 'entity' ],
filters: [
search.createFilter({
name: 'internalid',
operator: search.Operator.ANYOF,
values: [13, 12356]
})],
settings: [
search.createSetting({
name: 'consolidationtype',
value: 'NONE'
})]
});
//...
//Add additional code

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