var filterExp = [
[ ['custrecord_rebate_customer.isinactive', 'is', 'F'],
'and',
['custrecord_rebate_customer.custrecord_start_date', 'before', date],
'and',
['custrecord_rebate_customer.custrecord_end_date', 'after', date],
'and',
['custrecord_rebate_customer.custrecord_upaya_warehouse', 'anyof', warehouse],
'and',
['isinactive', 'is', 'F' ],
'and',
['custrecord_customer_name', 'anyof', customer]],
'or',
['custrecord_rebate_customer.custrecord_global_clearance_item','is','T']
];
I have a search that I am running to get results. I need to use an expression because I need to have an "or" in the filter. So in the UI I have the search built and it's producing the correct results. I get 7 results. Now in my code when I alert the search results I get 6 which means it's failing to do the "or" part of the code. I can't seem to figure out how to use the "or". First time with expressions in code so it might be a simple thing to fix. I have tried the brackets in every way possible. Does anyone have any solutions? Thanks in advance!