Hi all,
This sounds crazy, but I cannot for the life of me figure out how to setup a filter for Opportunities that are either 'In Progress', or 'Issued Estimate'. Sounds simple right? When you do a saved search the criteria is 'Document Status', if you load the record into the debugger its 'documentstatus'.
Here's the code I've used
filters.push(new nlobjSearchFilter('entitystatus',null,'anyof',['Opprtnty:A','Opprtnty:B'])); that doesn't work, it returns me all opportunities, if I use 'status' it returns nothing, if I use 'documentstatus' it also returns an error. (note: if I use the saved search, I get 107 records, same filters). Anybody done this in scripts before? I might be missing something in the documentation, wouldn't be the first time