Hi,
I need to load all the inventory feeds for a given location in a daily basis so I can keep our website updated according to NetSuite information.
So far the only way I have found to get this information is by using an ItemSearchBasic and filtering by inventoryLocation.
As result, I get a collection of references for InventoryItems or AssemblyItems -the 2 different items we use- and going straight to the locations collection I can get the inventory fee I need:
((InventoryItem)response.recordList[0])).locationsList.locations[2].quantityOnHand
The code above give me the qty on hand for the first item on the third location.
To get this, I needed to set the "bodyFieldsOnly" to TRUE.
Is there any other method that helps me to get the inventory levels for all the items in a certain location? Maybe something cheaper than this? (this is really expensive, I had to increase the default timeout for the service).
Is there a way I can scope the search results as I can do in the GUI? I would only need to have the ItemID, and the collection with the inventory levels for each location. (Actually it would be even better to have only the inventory levels for the location specified).
Thanks in advance,
Raciel