Hi All, I want to use the IN condition in script s...
# suitescript
s
Hi All, I want to use the IN condition in script saved search. I am trying to convert the array to string and setting the string in IN condition but its working in UI but not in script . Can anyone help with this?
w
Unless I've misunderstood what you're trying to do, you don't need to convert the array to string:
Copy code
search.create({
    type: search.Type.ITEM,
    filters: [{
        name: 'itemid',
        operator: search.Operator.ANYOF,
        values: ['1001', '1002', '1003']
    }],
    columns: ['itemid', 'displayname', 'upccode'],
})