Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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;