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.
Filtering out inventory items by the display in web site flag
Here's the scenario:
we currently use the standard webstore that comes with NS and have items set up there as noninventory items which are then filtered by the "Display in Web Site" flag to show or not - many items are turned off.
I've searched around trying to figure how to get that to display via a web service but just can't get it. Here's the code I have in C#
ItemSearch search = new ItemSearch();
ItemSearchBasic basic = new ItemSearchBasic();
search.basic = basic;
basic.isOnline.searchValue = true;
SearchResult result = ns.search(search);
I hit the basic.isOnline value and get System.NullReferenceException: Object reference not set to an instance of an object.
0