I need to access inventory detail using SuiteQL. W...
# suiteql
s
I need to access inventory detail using SuiteQL. What is the file name ?
t
@Simon I think you're looking for the InventoryItemLocations table. Here's a query that might help:
Copy code
SELECT
	Location,
	BUILTIN.DF( Location ) AS LocationName,
	QuantityOnHand,
	QuantityAvailable
FROM
	InventoryItemLocations 
WHERE
	Item = 35277
s
It's getting closer but not there yet. Mine is by Serial Number. It looks like this
message has been deleted
I guess it's another "table/file/custom Record"
t
Ah, ok. I think you want the InventoryNumber and InventoryNumberLocation tables. Take a look at this post - https://timdietrich.me/blog/netsuite-suiteql-serialized-lot-number-expiring-items/ - and specifically at the "Multi-Location Inventory" query. I think that's what you need.
a
Won't give you a breakdown by bin.
Copy code
Select * from inventorybalance
alert Breaking News!!! Don't know when they added it but this is revolutionary.
c
@Alan Fitch 💥 💥 💥 💥 I've got 100s of lines of SuiteQL queries I can trash now... thank you kind sir
n
How did you find out @Alan Fitch?
a
Credit to @battk
🤖 2
🔥 1