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.
referancing locations and quantities for inventory items
I am trying to reference inventory locations and quantities via SuiteTalk.
I have tried:
InventoryItem item = (InventoryItem)readResponse.record;
item.locationsList = new InventoryItemLocationsList();
item.locationsList.locations = new InventoryItemLocations[1];
item.locationsList.locations[0] = new InventoryItemLocations();
item.locationsList.locations[0].quantityAvailableSpecified = true;
inv.Add(item.locationsList.locations[0].location, item.locationsList.locations[0].quantityAvailable);
with no luck as item.locationsList.locations[0].location is null.
If I check the response I show proper values for location and qty fields (among others)
Can anyone point me to what I am missing?