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
Parameter | Type | Nullable | Description |
---|---|---|---|
operationId | String (ULID) | False | The ID of the operation. |
productionOrderIdOrName | String | False | The ID or Name of the production order to associate with the operation. |
Method 2: Set by Location and Operation Name
Parameter | Type | Nullable | Description |
---|---|---|---|
locationId | String (ULID) | False | The ID of the location associated with the operation. |
operationName | String | False | The name of the operation. |
productionOrderIdOrName | String | False | The 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')