What's the fastest way to get an item's inventory ...
# suitescript
a
What's the fastest way to get an item's inventory by bin and lot with SuiteScript?
b
probably a query for the inventory balance
search is probably comparable
a
Can I do an Inventory Balance search in suitescript?
b
yes
t
Will this work?
Copy code
SELECT
	Bin AS BinID,
	BUILTIN.DF( Bin ) AS BinName,
	OnHand
FROM
	ItemBinQuantity
WHERE
	Item = 151
ORDER BY
	BUILTIN.DF( Bin )
a
I wish.. I need the lot and the bin.
t
Have you looked at the InventoryNumberLocation table?
Actually, I guess that doesn't get you to the bin.
Seems like a SuiteQL "blind spot."
b
use the InventoryBalance table
a
AMAZING! Is this new?