The script below shows how to use the search operator “ANYOF“. The script searches for any Sales Order that has the status of “Pending Fulfillment”
//Add additional code...
var mySearchFilter = search.createFilter({
name: 'entity',
operator: search.Operator.ANYOF
values: 'SalesOrd:B'
});
...