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.
Querying Inventory Items
Hi,
I want to query the Inventory Item (SKU) from NetSuite based on itemID via Webservices.
I am using search method for which I am creating Itemsearch, ItemsearchBasic and SerachstringField. I am using the following code
ItemSearch Itemsrch = new ItemSearch();
ItemSearchBasic ItemsrchBasic = new ItemSearchBasic();
SearchStringField entityId = new SearchStringField();
entityId = new SearchStringField();
entityId.@operator = SearchStringFieldOperator.contains;
entityId.operatorSpecified = true;
entityId.operatorSpecified = true;
entityId.searchValue = "300";
ItemsrchBasic.itemid = entityId ;
Itemsrch.basic = ItemsrchBasic ;
SearchResult response = cnw.search(Itemsrch);
I am not getting itemid for itemrichbasic. Can anyone please suggest me how to get the items based on itemid.
Any help or sample code would be greatly appreciated...