Skip to main content

system.mes.equipment.getEquipmentPropertyValue

Description

Retrieves an Equipment Property Values record by its ID.

Permissions

This method requires the EQUIPMENT.READ.GET permission.

Syntax

system.mes.equipment.getEquipmentPropertyValue(id)

Parameters

ParameterTypeNullableDescription
idStringFalseThe ULID of the equipment property value to retrieve.

Returns

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

NameTypeDescription
equipmentIdString (ULID)The ULID of the equipment this property value belongs to.
equipmentPropertyIdString (ULID)The ULID of the equipment property that defines this value.
dataTypeStringThe data type of the value.
valueMixedThe actual value. Type depends on the property's data type.
idString (ULID)The ULID of the equipment property value.
notesStringNotes related to the property value.
enabledBooleanIndicates if this property value is active.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples

propertyValue = system.mes.equipment.getEquipmentPropertyValue('01JAP8RJBN-8ZTPXSGY-J9GSDPE1')
print(propertyValue)