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.
Getting items of a Sales Order
Hi,
Does anyone know what could be the reason for not being able to retrieve the items of sales orders? I use Java, Apache CXF (couldn't get the cookie issue fixed with Axis).
TransactionSearchBasic tsb = new TransactionSearchBasic();
SearchEnumMultiSelectField soField = new SearchEnumMultiSelectField();
soField.setOperator(SearchEnumMultiSelectFieldOperator.ANY_OF);
soField.getSearchValue().add(TransactionType.SALES_ORDER.value());
tsb.setType(soField);
SearchRequest sreq = new SearchRequest();
sreq.setSearchRecord(tsb);
SearchResponse sresp = port.search(sreq);
SearchResult sres = sresp.getSearchResult();
SalesOrder rec = (SalesOrder)sres.getRecordList().getRecord().get(0);
rec.getItemList() is ALWAYS NULL for some reason
Thank you,
Bob