<@UAAAN6Y0M> something like this? ```var filters =...
# suitescript
k
@SimonC something like this?
Copy code
var filters = [];
var f1 = search.createFilter({name: 'otherrefnum', operator: search.Operator.EQUALTO, values: customerpo});
filters.push(f1);
s
I'll try it out thanks
👍 1
would you also know how to specify an OR expression for any filters I add rather than standard AND
k
It may be worth you building in the standard way.
Copy code
filters:
                             [
                                 ["type","anyof","SalesOrd"],
                                 "AND",
                                 ["closed","is","F"],
                                 "AND",
                                 ["mainline","is","F"],
                                 "AND",
                                 ["name","anyof",custIntID],
                                 "AND",
                                 ["item.type","anyof","Assembly","InvtPart"],
                                 "AND",
                                 ["item","anyof",itemIDs]
                             ],
like this
you can still push into this filters array but with the and or or as well.
filters.push("AND");
just gets difficult to manage and remove on the fly etc.
s
great, thanks man. let ya know how it goes
👍 1