so thanks to other members for getting my filters ...
# suitescript
r
so thanks to other members for getting my filters working with
N/Format
. Now I have a new issue. I simple code that is loading a saved search, adding two date filters with
N/Search.Operator.ONORAFTER
and
N/Search.Operator.ONORBEFORE
. When I do run the search through the debugge, I'm getting zero results, however if I run the Saved Search directly, I do get a list of results. Any ideas?
e
I believe you need to replace the whole search filter collection, not add to it.
r
I still need the original filters that are part of the saved search, but for the sake of argument, I offloaded them into another variable, pushed two new filters, then re-ran, still no results
e
I do this regularly, but I use a filter expression, not by using a
search.createFilter
r
thanks. your idea had me look at my filters and detail and I realized I was doubling up on two different date filters, which is was the reason of no results
👍 1