Siena
06/16/2020, 7:56 PMinventorynumbers
search, where I have a list of inventory numbers, and I'm searching to find their IDs, but the question itself is very general: How can i filter on a list of values?
I tried ['inventorynumber', 'anyof', ['SN1', 'SN2']]
but it gives me UNEXPECTED_ERROR
. Any ideas?battk
06/16/2020, 8:02 PMbattk
06/16/2020, 8:02 PMis
battk
06/16/2020, 8:04 PM[
["inventorynumber", "is", "SN1"],
"OR",
["inventorynumber", "is", "SN2"],
]
Siena
06/16/2020, 8:06 PMis
could only work on one value?Siena
06/16/2020, 8:07 PMOR
syntax might be annoying because the array is a variable length, so I'd have to write a whole function just to build the filters up. What is a text type filter? Am I able to still use an array of strings to filter or is OR
the only way?Siena
06/16/2020, 8:08 PMis
right now though, maybe it will workbattk
06/16/2020, 8:09 PM[
"formulanumeric: CASE WHEN {inventorynumber} IN ('SN1', 'SN1') THEN 1 ELSE 0 END",
"equalto",
"1",
]
battk
06/16/2020, 8:10 PMin
Siena
06/16/2020, 8:11 PMbattk
06/16/2020, 8:12 PMSiena
06/16/2020, 8:13 PMSandii
06/16/2020, 8:22 PMOR
method may be faster the larger the dataset gets, formula's in criteria slow the search down.Siena
06/16/2020, 8:25 PMOR
way 🙂