Skip to main content

system.mes.operation.getProductionOrderForOperation

Description

Retrieves the production order for a given Operations record.

Syntax

system.mes.operation.getProductionOrderForOperation(operationId)

Parameters

ParameterTypeDescription
operationIdString (ULID)The 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
production_order = system.mes.operation.getProductionOrderForOperation('01JPBCPKSR-972W3V0Y-H00NNSKQ')

# Output the production order
print(production_order)