system.mes.productionOrder.getProductionOrderPropertyValue
Description
Retrieves a Production Order Property Values record by its specified ID.
Syntax
system.mes.productionOrder.getProductionOrderPropertyValue(id)
Parameters
Parameter | Type | Description |
---|---|---|
id | String (ULID) | The ULID of the production order property value to retrieve. |
Returns
Returns a JSON representation of the production order property value. Returns nothing if no production order property value is found.
Name | Type | Description |
---|---|---|
productionOrderId | String (ULID) | The ULID of the production order. |
propertyId | String (ULID) | The ULID of the production order property. |
dataType | String | The data type of the property value. Must be the same as the data type of the property. |
value | Mixed | The value assigned to the property value if none is provided. The type is mixed as it depends on what dataType is. |
id | String (ULID) | The ULID of the production order property value (optional, for updating an existing property). |
notes | String | Notes related to the production order property value. |
enabled | Boolean | Indicates if the property value is active and enabled. |
spare1 | String | Additional field for user-defined context. |
spare2 | String | Additional field for user-defined context. |
spare3 | String | Additional field for user-defined context. |
Code Examples
# Retrieve a production order property value by ID
property_value = system.mes.productionOrder.getProductionOrderPropertyValue('01JQ2AN7CQ-MWR6A9M0-FQSEAHTJ')
# Output the production order property value
print(property_value)