// Perform a search to get bins and their available quantities
let binSearch = search.create({
type: ‘inventorybalance’,
filters: [
[‘item’, ‘anyof’, itemId],
‘AND’,
[‘location’, ‘anyof’, LOCATION_ID] // Replace LOCATION_ID with the specific location ID
],
columns: [
‘binnumber’,
‘available’
]
});