Skip to main content
Version: V3 (Ignition 8.3)

system.mes.operation.getOperationsByLocation

Description​

Retrieves all the Operations records at a given location.

Permissions​

This method requires the OPERATION.READ.GET permission.

Syntax​

system.mes.operation.getOperationsByLocation(locationIdOrPath)

Parameters​

ParameterTypeNullableDescription
locationIdOrPathStringFalseThe 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
allOperations = system.mes.operation.getOperationsByLocation('DairyCo')

# Output the list of operations
print(allOperations)