trying to search a text field using an array of po...
# suitescript
d
trying to search a text field using an array of possible values, but am getting some errors. SS2.0:
filters: [["myfield", "any", ["hello", "world"]]
didn't work, neither did
filters: [["myfield", "anyof", ["hello", "world"]]
or
filters: [["myfield", "contains", ["hello", "world"]]
n
filters: [["myfield", "anyof", ["hello", "world"]] should work nicely for you and would save you the mess of writing a formula and then putting in logic to get the values based on that formula. Can you share the error you got.
BTW, It should be filters: [["myfield", "anyof", "hello", "world"]] i.e. hello and world need not be an array.