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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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