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.
C# ERP .NET Sample Code.
/// <summary> Helper method that searches for SalesOrder records with status of the /// given String parameter value. /// /// </summary> private void searchSOByStatusAllValues(System.String parmStatus) { TransactionSearch xactionSearch = new TransactionSearch(); SearchEnumMultiSelectField soField = new SearchEnumMultiSelectField(); soField.@operator = SearchEnumMultiSelectFieldOperator.anyOf; soField.operatorSpecified = true; System.String[] searchValueStringArray = new System.String[1]; searchValueStringArray[0] = TRANSACTION_TYPE; soField.searchValue = searchValueStringArray; SearchEnumMultiSelectField statusField = new SearchEnumMultiSelectField(); statusField.@operator = SearchEnumMultiSelectFieldOperator.anyOf; statusField.operatorSpecified = true; System.String[] searchStatusStringArray = new System.String[1]; searchStatusStringArray[0] = parmStatus; statusField.searchValue = searchStatusStringArray; TransactionSearchBasic xactionBasic = new TransactionSearchBasic(); xactionBasic.type = soField; xactionBasic.status = statusField; xactionSearch.basic = xactionBasic; SearchResult res = _service.search(xactionSearch); if (res.status.isSuccess) { Record[] recordList; _out.writeLn("nNumber of records found: " + res.totalRecords); _out.writeLn("nPage size: " + res.pageSize); for (int i = 1; i <= res.totalPages; i++) { recordList = res.recordList; _out.writeLn("Page " + res.pageIndex); _out.writeLn("------"); for (int j = 0; j < recordList.Length; j++) { if (recordList[j] is SalesOrder) { SalesOrder so = (SalesOrder) (recordList[j]); _out.writeLn("n Customer entity ID: " + so.entity.name); _out.writeLn("n Sales Order 0