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.