Skip to main content

system.mes.productionOrder.getProductionOrderProperty

Description

Retrieves a Production Order Properties record by its specified ID or name.

Syntax

system.mes.productionOrder.getProductionOrderProperty(idOrName)

Parameters

ParameterTypeDescription
idOrNameStringThe ULID or name of the production order property to retrieve.

Returns

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

NameTypeDescription
nameStringThe name of the production order property.
descriptionStringA description of the production order property.
dataTypeStringThe data type of the property (e.g., Integer, String, Float).
lowLimitDoubleThe minimum value allowed for a numerical property.
highLimitDoubleThe maximum value allowed for a numerical property.
formatStringThe format of the property, if applicable.
unitOfMeasureIdString (ULID)The ULID of the unit of measure for this production order property.
unitOfMeasureNameStringThe name of the unit of measure for this production order property. For display purposes only.
unitOfMeasureSymbolStringThe symbol of the unit of measure for this production order property. For display purposes only.
optionsStringList of possible values for the property (e.g., "[option1, option2]").
nullableBooleanDefines if the property can accept null values.
defaultValueMixedThe default value assigned to the property if none is provided. The type is mixed as it depends on what dataType is.
idString (ULID)The ULID of the production order property.
notesStringNotes related to the production order property.
enabledBooleanIndicates if the property 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 by ID or name
property = system.mes.productionOrder.getProductionOrderProperty('Batch Size')

# Output the production order property
print(property)