Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Search Item does not return Subsidiary List
I have a function to search Netsuite Service Item likes this
ItemSearch itemFinder = new ItemSearch(); ItemSearchBasic itemSearch = new ItemSearchBasic(); itemSearch.setIsInactive(new SearchBooleanField(false)); SearchEnumMultiSelectFieldOperator stageOperator = SearchEnumMultiSelectFieldOperator.anyOf; SearchEnumMultiSelectField searchEnum = new SearchEnumMultiSelectField(new String[] { "_service" }, stageOperator); // Query all Service Items itemSearch.setType(searchEnum); itemFinder.setBasic(itemSearch); SearchResult result = portType.search(itemFinder); // Total pages int totalPages = result.getTotalPages(); List<ServiceItem> itemList = new ArrayList<ServiceItem>(); if (result.getStatus().isIsSuccess()) { Record[] records = result.getRecordList().getRecord(); if (records != null) { for (int i = 0; i < records.length; i++) { ServiceItem serviceItem = new ServiceItem(); if (records[i].getClass().equals(ServiceSaleItem.class)) { ServiceSaleItem serviceSaleItem = (ServiceSaleItem) records[i]; if (serviceSaleItem.getSubsidiaryList() != null) { RecordRef recordRefList[] = serviceSaleItem.getSubsidiaryList().getRecordRef(); int r = 0; while (recordRefList.length 0