system.mes.operation.getOperationsByLocation
Description
Retrieves all the Operations records at a given location.
Syntax
system.mes.operation.getOperationsByLocation(locationIdOrPath)
Parameters
Parameter | Type | Description |
---|---|---|
locationIdOrPath | String | The ID or path of the location associated with the operation. |
Returns
Returns a list of JSON objects representing all operations at the given location.
Example Usage
# Retrieve all operations at a given location
all_operations = system.mes.operation.getOperationsByLocation('DairyCo')
# Output the list of operations
print(all_operations)