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
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?