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.
Searching by Customer Category
Is it possible to search via the Customer Category? I can do it in the web UI, but when I try it in the web service, I get "you need to provide a valid search operator".
Here's a code snippet of what I'm trying to do:
CustomerSearch custSearch=new CustomerSearch();
CustomerSearchBasic customerSearchBasic = new CustomerSearchBasic();
RecordRef rtl=new RecordRef();
rtl.setName("Retail Customer");
rtl.setInternalId("1");
rtl.setType(RecordType.customerCategory);
RecordRef[] cats={rtl};
customerSearchBasic.setCategory(cats);
custSearch.setBasic(customerSearchBasic);
SearchResult result=port.search(custSearch);
Thanks. I'm new to this web service
0