<@UN03G4VT8> I don't see `customersubof` as a vali...
# suitescript
e
@Dmitry Masanov I don't see
customersubof
as a valid Filter in the Records Browser, but my guess is that it's a List field, so you should be using
ANYOF
, not
IS
. Also in case your variable name did not change between versions, you have
customerID
in one and
customerId
in the other.
d
Thanks @erictgrubaugh. Yes, looks like customersubof is not a standard filter, but it was chosen on "Available Filters" subtab. I tried ANYOF as well, but still no luck.
e
The field label and the script id are not necessarily the same; it's possible you just need to scan the Records Browser for the right ID
d
Hm. I actually found search filter customersubof select Customer Sub of here: https://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2018_1/script/record/transaction.html
e
aside: You may want to start using
2020_1
instead
That list is for Transaction searches
d
Yes, saved search is a Transaction search. Just checked 2020_1 and looks like customersubof is still there
Sorry, nevermind. Customer was null all that time. 😞
Thank you for your help!
e
Three things to always check when you get that
is not in proper syntax
error: 1. Is your Filter ID valid? 2. Does your Operator match the Field Type? (
Help:SuiteScript 1.0 Search Operators
, equally applicable to 2.x) 3. Is your value correct?
👍 1