Skip to main content

system.mes.inventory.setInventoryMetadata

Description

Sets the production order for a given Operations record.

Syntax

system.mes.operation.setProductionOrderForOperation(locationId, operationName, productionOrderIdOrName)
system.mes.operation.setProductionOrderForOperation(operationId, productionOrderIdOrName)

Parameters

Method 1: Set by Operation ID

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation.
productionOrderIdOrNameStringFalseThe ID or Name of the production order to associate with the operation.

Method 2: Set by Location and Operation Name

ParameterTypeNullableDescription
locationIdString (ULID)FalseThe ID of the location associated with the operation.
operationNameStringFalseThe name of the operation.
productionOrderIdOrNameStringFalseThe ID or Name of the production order to associate with the operation.

Returns

No response is returned.

Code Examples

# Set the production order for an operation
system.mes.operation.setProductionOrderForOperation('01JPBCPKSR-972W3V0Y-H00NNSKQ', '01JPMTA7K3-E8EHA4MD-7C304P4Z')