system.mes.inventory.getAllInventoryAtLocation
Description
Retrieves all the Inventories records at a given location.
Syntax
system.mes.inventory.getAllInventoryAtLocation(locationIdOrPath)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
locationIdOrPath | String | False | The ID or path of the location associated with the inventory. |
Returns
Returns a list of JSON objects representing all inventories at the given location.
Example Usage
# Retrieve all inventories at a given location
allInventories = system.mes.inventory.getAllInventoryAtLocation('DairyCo')
# Output the list of inventories
print(allInventories)