How can I search an array of items using suitescri...
# general
e
How can I search an array of items using suitescript? I have read that "You cannot use ANYOF, ALLOF, etc. when filtering a search on a text field"... so.. is any field that I CAN use as filter for items?
m
Are you able to pull the Item Internal ID? Generally I approach this getting the internal ID's of the items and searching from there
e
Yes, I guess.. the Chrome exports that filter as [["internalidnumber","equalto","28230"],"OR",["internalidnumber","equalto","31082"]]
I then tried myList = [28230,31082] (with quoyes and without quotes) using "anyof"... didnt work
m
Copy code
["internalid","anyof","100747","100748","100749"]
I haven't seen internalidnumber used if you're searching an item. Try changing it to internalid
e
Thanks, will try it.