I am trying to do a saved search, where I check if...
# suitescript
b
I am trying to do a saved search, where I check if an associated transaction has a certain Document Number ["custrecord_byu_isp_location_link_trans.tranid","is","CS62050"] When I use Tran ID or Number Text, I get this error ""name":"MISMATCHED_SEARCH_PARENTHESIS","message":"Search error: Parentheses are unbalanced." If I use Number, I get too many results "SSS_SEARCH_FOR_EACH_LIMIT_EXCEEDED","message":"No more than 4000 search results may be returned at one time Is there a way to filter by The Document Number when I am referencing a joined record?
b
pick your filter carefully
the operators used for numbers are different than the operators for text
dont use an operator for text on a number filter
or a number operator for a text filter
if you dont know how to tell the difference, build the search in the ui first, load it in script, then inspect its filters
the ui wont let you mixup operators
👍 1
b
Thanks!
m