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

ParameterTypeDescription
locationIdString (ULID)The ID of the location associated with the operation.
operationNameStringThe name of the operation.
productionOrderIdOrNameStringThe ID or Name of the production order to associate with the operation.
ParameterTypeDescription
operationIdString (ULID)The ID of the operation.
productionOrderIdOrNameStringThe 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')