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.
Failed Item Fulfillment Searches
I'm trying to do a search for item fulfillment records related to a sales order, but my searches keep coming up empty, even though I know there are fulfillments attached to the sales orders I'm already bring up from another search. There must be something I have coded incorrectly but for the life of me I don't know what. Here's my C# code:
SalesOrder so = (SalesOrder) (recordList[j]); TransactionSearch fulfillmentSearch = new TransactionSearch(); SearchEnumMultiSelectField searchItemFullfillmentField = new SearchEnumMultiSelectField(); searchItemFullfillmentField.@operator = SearchEnumMultiSelectFieldOperator.anyOf; searchItemFullfillmentField.operatorSpecified = true; String[] ifStringArray = new String[1]; ifStringArray[0] = "_itemFulfillment"; searchItemFullfillmentField.searchValue = ifStringArray; SearchMultiSelectField findSoRecord = new SearchMultiSelectField(); findSoRecord.@operator = SearchMultiSelectFieldOperator.anyOf; findSoRecord.operatorSpecified = true; RecordRef soRecord = new RecordRef(); soRecord.type = RecordType.salesOrder; soRecord.typeSpecified = true; soRecord.internalId = so.internalId; //soRecord.name = so.tranId; RecordRef[] soRecords = new RecordRef[1]; soRecords[0] = soRecord; findSoRecord.searchValue = soRecords; TransactionSearchBasic soIfSearch = new TransactionSearchBasic(); soIfSearch.type = searchItemFullfillmentField; soIfSearch.createdFrom = findSoRecord; fulfillmentSearch.basic = soIfSearch; SearchResult ifRes = _service.search(fulfillmentSearch);
0