Search.filters
Property Description |
Filters for the search as an array of search.Filter objects. Value is You set this value with an array or single search. Filter objects to overwrite any prior filters. Use Filter expressions are an alternative way to define filters of a search. The expressions are an array of JavaScript objects that are passed through this property. For more information about filter expressions, see the Search.filterExpression property. |
Type |
|
Module |
|
Since |
2015.2 |
Errors
Error Code |
Message |
Thrown If |
---|---|---|
|
An search filter contains invalid search criteria |
Invalid value for search filter type. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/search Module Script Samples.
//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