Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Searching by ExternalId problem
Hi,
We're having problems searching by externalId when the string contains whitespace. We're receiving an INVALID_KEY_OR_REF error stating the the externalId is invalid.
Should the following not work?
SearchMultiSelectField extId = new SearchMultiSelectField(); extId.setOperator(SearchMultiSelectFieldOperator.anyOf); RecordRef[] recordRefs = new RecordRef[1]; RecordRef recordRef = new RecordRef(); recordRef.setExternalId("Customer External Id"); recordRefs[0] = recordRef; extId.setSearchValue(recordRefs); custSearchBasic.setExternalId(extId); 0