Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
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.