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