Skip to main content
Version: V3 (Ignition 8.3)

system.mes.productionOrder.getProductionOrderPropertyValueFor

Description​

Retrieves a Production Order Property Values record given a production order ID and a property ID or name.

Permissions​

This method requires the PRODUCTION_ORDER.READ.GET permission.

Syntax​

system.mes.productionOrder.getProductionOrderPropertyValueFor(productionOrderIdOrName, propertyIdOrName)

Parameters​

ParameterTypeNullableDescription
productionOrderIdOrNameStringFalseThe ULID or Name of the production order.
propertyIdOrNameStringFalseThe ULID or name of the property for which the value is retrieved.

Returns​

Returns a JSON representation of the production order property value. Returns nothing if no production order property value is found.

NameTypeDescription
productionOrderIdString (ULID)The ULID of the production order.
propertyIdString (ULID)The ULID of the production order property.
dataTypeStringThe data type of the property value. Must be the same as the data type of the property.
valueMixedThe value assigned to the property value if none is provided. The type is mixed as it depends on what dataType is.
idString (ULID)The ULID of the production order property value (optional, for updating an existing property).
notesStringNotes related to the production order property value.
enabledBooleanIndicates if the property value is active and enabled.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples​

# Retrieve a production order property value by its production order ID and property ID or name
propertyValue = system.mes.productionOrder.getProductionOrderPropertyValueFor('01JPMTA7K3-E8EHA4MD-7C304P4Z', 'Batch Size')

# Output the production order property value
print(propertyValue)