NElliott
07/21/2021, 3:48 PMbattk
07/21/2021, 3:50 PMNElliott
07/21/2021, 3:54 PMNElliott
07/21/2021, 3:56 PMfilters: [
['email', search.Operator.STARTSWITH, 'kwolff'],
'and',
[
['id', search.Operator.EQUALTO, 107], 'or',
['id', search.Operator.EQUALTO, 2508]
]
]
but add that latter array with the 'or' separator to existing filters on a saved searchNElliott
07/21/2021, 3:58 PMbattk
07/21/2021, 3:58 PMNElliott
07/21/2021, 4:03 PMvar imeifilterSingle = search.createFilter({
name: 'name',
operator: <http://search.Operator.IS|search.Operator.IS>,
values:thisRow[cell],
});
battk
07/21/2021, 4:04 PMbattk
07/21/2021, 4:04 PMimeifilterSingle
is a filterbattk
07/21/2021, 4:05 PM[
['email', search.Operator.STARTSWITH, 'kwolff'],
'and',
[
['id', search.Operator.EQUALTO, 107], 'or',
['id', search.Operator.EQUALTO, 2508]
]
]
is not a filterNElliott
07/21/2021, 4:06 PMsomeArray.push(imeifilterSingle);
someArray.push('or');
someArray.push(imeifilterDouble);
searchObj.filters.push(someArray);
And it's complaining about the "or";NElliott
07/21/2021, 4:07 PMbattk
07/21/2021, 4:10 PMsearchObj.filters
and to instead use searchObj.filterExpression
NElliott
07/21/2021, 4:11 PMNElliott
07/21/2021, 4:55 PMmichoel
07/21/2021, 11:51 PMNElliott
07/22/2021, 7:59 AM