Hi, Any help on this is really appreciated. I'm t...
# suitescript
s
Hi, Any help on this is really appreciated. I'm trying to filter the sales order by status. I would like to retrieve the orders that are not closed. var order_filters = [['mainline','is',true],'and',['status','isnot','closed']]; var orderSearch = search.create({type:search.Type.SALES_ORDER, filters: order_filters}); But i'm getting an error saying "An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: status." I tried changing the operators to NOTEQUALTO, DOESNOTCONTAIN. I kept getting the same error.
b
you get the generic saved search advice here\
make the search in the ui first, then copy it into script
there is an extension to help you out if you don't know how to transform a ui search into code
s
I'll try that @battk. Thank you.
b
more specifically your problem is the
closed
is not a valid option for status
s
Thank You @battk. I was able to figure out the issue and get the result set.