Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Handling Results
I'm new to writing .NET services using the NS API and am having trouble finding info on how to handle results from an ItemSearch. I'm doing an ItemSearch on two custom fields and want to access two values in the returned results. My code is posted below:
netSuite.NetSuiteService service = new NetSuiteLogic.netSuite.NetSuiteService();
netSuite.ItemSearch itemSearch = new NetSuiteLogic.netSuite.ItemSearch();
netSuite.ItemSearchBasic itemSearchBasic = new NetSuiteLogic.netSuite.ItemSearchBasic();
itemSearch.basic = itemSearchBasic;
itemSearchBasic.customFieldList = new NetSuiteLogic.netSuite.SearchCustomField[1];
netSuite.SearchStringCustomField appIdSearch = new NetSuiteLogic.netSuite.SearchStringCustomField();
appIdSearch.internalId = "custitem_app_id";
appIdSearch.searchValue = AppId;
appIdSearch.@operator = NetSuiteLogic.netSuite.SearchStringFieldOperator.@is;
appIdSearch.operatorSpecified = true;