Skip to main content

system.mes.operation.getOperationsByLocation

Description

Retrieves all the Operations records at a given location.

Syntax

system.mes.operation.getOperationsByLocation(locationIdOrPath)

Parameters

ParameterTypeDescription
locationIdOrPathStringThe 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)