Does this filter syntax look right? (The goal is ...
# suitescript
r
Does this filter syntax look right? (The goal is to limit to transactions within the last 5 months): filters.push(search.createFilter({ name : 'formulanumeric: CEIL(MONTHS_BETWEEN(SYSDATE,{trandate}))', operator : 'BETWEEN', values : ['1','5'] })); Thanks in advance.
Then, you can create/validate the search using the UI. Once you're happy, this Chrome extension will show you the code. Its brilliant. Easily the most used tool I have.
a
try this:
filters.push(search.createFilter({
name : 'trandate',
operator : search.Operator.AFTER,
values : ['monthsago5']
}));
r
@darrenhillconsulting Great tip, and I actually did start with that tool and I love it. @Alderik will try. I definitely wouldn't have come up with that on my own.
@Alderik Following up. That worked like a charm. Really appreciate the tip. I owe the delay to other unrelated nonsense. Thank you.