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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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