hi how to add a on the fly filter of "customer is ...
# suitescript
r
hi how to add a on the fly filter of "customer is anyof customerId" after i load the search, var searchLoad = search.load({         id: savedSearchOnEmailRec       }); createfilter? but how i am confused?
s
searchLoad.filters.push(//createFilter call)
r
ok trying thanks
i used var searchLoad = search.load({         id: savedSearchOnEmailRec       }); searchLoad.filters.push(["custrecord_customer","anyof","620"]); TypeError: _filters[i]._clone is not a function
s
searchLoad.filters.push(["custrecord_customer","anyof","620"]);
 you are missing the search.createFilter call here, you cant add a random array in there, you need to turn that array into a searchFilter
r
yes, just discovered