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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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