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