Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Search.filters

{Search}.filters{SSS_INVALID_SRCH_FILTER: {An search filter contains invalid search criteria}})

N/search Module
Search.filters
Property Description: Filters for the search as an array of search.Filter objects. Value is null if the search has no defined filters. You set this value with an array or single search.Filter objects to overwrite any prior filters. Use null to set an empty array and remove any existing filters on this search. Use search.createFilter(options) to create a filter. If you want to get or set a search filter expression, use the Search.filterExpression property.
Type: search.Filter[]
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=Search.filters

Example:

// Code Example 1
//Add additional code
//...

var myFilter = search.createFilter({
name: 'entity',
operator: search.Operator.ISEMPTY,
});

function createSearch() {
var mySalesOrderSearch = search.create({
type: search.Type.SALES_ORDER,
filters: myFilter
});
//...
//Add additional code

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