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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Search for customer by name results in error
I'm trying to do a customer search based on their name, but I get an error when I do:
Error: You need to provide a valid search field operator.
This is how I'm (attempting) to perform the search, what am I doing wrong?
var cs = new CustomerSearch(); cs.basic = new CustomerSearchBasic(); cs.basic.companyName = new SearchStringField(); cs.basic.companyName.@operator = SearchStringFieldOperator.@is; cs.basic.companyName.searchValue = "My company name"; var customerSearchResult = netSuiteService.search(cs);
0