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.
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