Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Search a Cutomer through API
Hi,
I am trying to search a Customer thanks to SOAP API on a basic field.
But I don't understand where my criteria has to be set...
Here is my snippet :
CustomerSearch customerSearch = new CustomerSearch();
SearchRequest sr = new SearchRequest();
sr.setSearchRecord(customerSearch);
SearchResponse searchResp = webService.search(sr);
List<Customer> customerList = new ArrayList<Customer>();
if(searchResp.getSearchResult().getStatus().isIsSuccess())
{
RecordList rl = searchResp.getSearchResult().getRecordList();
for(Record r : rl.getRecord())
{
Customer c = (Customer)r;
customerList.add(c);
System.out.println(c.getAccountNumber());
}
}