nzaleski
06/17/2020, 3:36 PMor expression when using search.createFilter ? I have tried a couple of things but doesn't seem to work
search.createFilter([
{
name: 'custbody_cr_location',
operator: search.Operator.ANYOF,
values: location
},
'OR',
{
name: 'location',
operator: search.Operator.ANYOF,
values: location
}
])
and I have also just tried to add an array directly to the searchResults.filters like so
searchResults.filters.unshift([
['custbody_cr_location', 'anyof', location],
'OR',
['location', 'anyof', location]
])