Right I asked yesterday about the below but I am d...
# suitescript
k
Right I asked yesterday about the below but I am desperate to get it fixed. I am running the below Search in a UE of BeforeSubmit but i am getting the error below.
Copy code
var searchResults = search.create({
                         type: "salesorder",
                         filters: [["name","anyof",custIntID], "AND", ["item","anyof",itemIntID], "AND", ["type","anyof","SalesOrd"], "AND", ["closed","is","F"]],
                         columns: [search.createColumn({name: "trandate", sort: search.Sort.DESC}), "rate"]}).run().getRange({start:0, end: 1});
{"type":"error.SuiteScriptError","name":"SSS_INVALID_SRCH_OPERATOR","message":"An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: item."
n
["item","anyof",itemIntID.toString()] try this parameter ["item","anyof",22,332,42)]