Skip to main content
Version: V2 (Ignition 8.1)

system.mes.operation.getProductionOrderForOperation

Description​

Retrieves the production order for a given Operations record.

Permissions​

This method requires the OPERATION.READ.GET permission.

Syntax​

system.mes.operation.getProductionOrderForOperation(operationId)

Parameters​

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation.

Returns​

Returns a JSON objects representing a production order associated with the operation.

Example Usage​

# Retrieve the production order associated with the operation
productionOrder = system.mes.operation.getProductionOrderForOperation('01JPBCPKSR-972W3V0Y-H00NNSKQ')

# Output the production order
print(productionOrder)