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.
Querying Customer Lists
I want to query a custom list via Web Services. I am following the example on page 151 of the Web Services Records user guide (version 1.3.2). The same example was also presented in the old user forum as well, as follows.
CustomRecordSearch customRecordSearch = new CustomRecordSearch();
RecordRef recordRef = new RecordRef();
recordRef.setInternalId("3");
customRecordSearch.setRecType(recordRef);
SearchResult result = port.search(customRecordSearch);
I am using the internal id "3" obtained from my custom lists' URL:
https://system.netsuite.com/app/common/custom/custlist.nl?id=3&e=T&ord=F
I am also using CustomRecordSearchBasic in place of CustomRecordSearch in the 1.3.2 WSDL.
When I run this code I get back a failed status Code = USER_ERROR, Message = Invalid Record Type.