so in this search i am getting the value sendTranO...
# suitescript
r
so in this search i am getting the value sendTranObj.sendType but it is required by netsuite... is there a way through sql formula that i can avoid creating a new search just for this specific sendTranObj.sendType parameter. i want to run search with criteria sendTranObj.sendType when i have a value available for it??? is that possible?
n
Do you mean you want to add that filter in if you have the value and leave the filter out if not?
r
yes!
how can i do that, please?
s
Create the
filters
array dynamically before the search.create call and pass your array to the
search.create
call instead of directly constructing the array in there
r
yes i can try that, thanks!