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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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