i was expecting the count to be 5 as that is what ...
# suitescript
m
i was expecting the count to be 5 as that is what i have when i apply the filter (item name) on the saved search, but in code the count is 300+ with the filter passed
e
load()
doesn't accept filters, and depending on what's in
line_item_name
, that doesn't look like a valid filter
You can manipulate the filters of a loaded saved search after you load it though
Copy code
var item_search = search.load({id: ...});
item_search.filters.push(search.createFilter(...));
item_search.run()...
m
wonderful, that worked - thanks Eric
👍 1