megaphone
Update your Profile with your Support type to get your Support Type badge.
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
Stay in the know of how NetSuite can help grow your business with our guides, webinars, and events. Subscribe Here
What Topic Should We Cover Next? Your idea could be our next feature—drop your suggestion now!
No Limits. Just possibilities. Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Discover what's next at SuiteConnect Tour 2026.
Try Intelligent Payment Automation – Fee Free For Your First Month For more information, visit this thread.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.

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.

C# ERP .NET Sample Code.

edited May 26, 2020 2:15PM in SuiteCloud / Customization 2 comments
 /// <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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 2 (Apr-Jun 2026)

This Week's Leaders

This Month's Leaders

All Time Leaders