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 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