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.
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.
Webservice Search using an integer value
Hello,
I am creating a websservice to search case records using a saved search and I need to search on a number of fields. I have successfully managed to search on a custom field that is of string type. The code is below and works and returns my record with a search value of "181". (ignore the alarmid parameter as i will not be passing any parameters in). The NetSuite custom record is set as string.
public SearchResult CaseSearch(String alarmid) { Console.WriteLine("N> *** Function: CaseSearch"); SupportCaseSearchBasic casesearch = new SupportCaseSearchBasic(); // WORKS Search alarmid STRING SearchCustomField[] _searchCustomField = new SearchCustomField[1]; SearchStringCustomField _searchStringCustomField = new SearchStringCustomField(); _searchStringCustomField.internalId = "custevent_alarm_id"; _searchStringCustomField.searchValue = "181"; _searchStringCustomField.operatorSpecified = true; _searchStringCustomField. 0