Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Remaining inventory qty for Work order completion
Hello,
We are integrating our MES to Netsuite and send WOC to Netsuite as needed. Before we send WOC, we query how much qty is remaining for each item in inventory detail (so we do not get to negative qty).
I have the script mostly working except for lot number. The result I get is shown below and you can see inventorynumber is null.
[
{\"internalid\":\"1970\",\"item\":\"500-000009\",\"islotitem\":null,\"binnumber\":\"\",\"location\":null,\"inventorynumber\":null,\"expirationdate\":null,\"status\":\"\",\"onhand\":\"1200\",\"available\":null},
{\"internalid\":\"1971\",\"item\":\"500-000010\",\"islotitem\":null,\"binnumber\":\"\",\"location\":null,\"inventorynumber\":null,\"expirationdate\":null,\"status\":\"\",\"onhand\":\"600\",\"available\":null},
{\"internalid\":\"1973\",\"item\":\"501-000005\",\"islotitem\":null,\"binnumber\":\"\",\"location\":null,\"inventorynumber\":null,\"expirationdate\":null,\"status\":\"\",\"onhand\":\"16500\",\"available\":null},
{\"internalid\":\"1975\",\"item\":\"501-000007\",\"islotitem\":null,\"binnumber\":\"\",\"location\":null,\"inventorynumber\":null,\"expirationdate\":null,\"status\":\"\",\"onhand\":\"13500\",\"available\":null}
]
Tagged:
0