system.mes.inventory.getAllInventoryAtLocation
Description
Retrieves all the Inventories records at a given location.
Syntax
system.mes.inventory.getAllInventoryAtLocation(locationIdOrPath)
Parameters
Parameter | Type | Description |
---|---|---|
locationIdOrPath | String | 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
all_inventories = system.mes.inventory.getAllInventoryAtLocation('DairyCo')
# Output the list of inventories
print(all_inventories)