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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Item Fulfillment: Can not retrive items
I'm trying to retrieve all fulfillments and serial numbers as a part of requirement we have. Now with following piece of code I can retrieve all fulfillments but getItem() always returns null. am I missing something?
Thanks,
Yogesh
--------------------------------------------------------------------
TransactionSearch xactionSearch = new TransactionSearch();
SearchEnumMultiSelectField soField = new SearchEnumMultiSelectField();
soField.setOperator(SearchEnumMultiSelectFieldOperator.anyOf);
String[] searchValueStringArray = new String[1];
searchValueStringArray[0] = TransactionType.__itemFulfillment;
soField.setSearchValue(searchValueStringArray);
SearchMultiSelectField intIdField = new SearchMultiSelectField();
intIdField.setOperator(SearchMultiSelectFieldOperator.noneOf);
RecordRef rr = new RecordRef();
rr.setInternalId("@NONE@");
RecordRef[] searchValueStringArray1 = new RecordRef[1];
searchValueStringArray1[0] = rr;
intIdField.setSearchValue(searchValueStringArray1);
TransactionSearchBasic xactionBasic = new TransactionSearchBasic();
xactionBasic.setType(soField);
xactionBasic.setInternalId(intIdField);
xactionSearch.setBasic(xactionBasic);
SearchResult res = nsPort.search(xactionSearch);