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
| Parameter | Type | Nullable | Description |
|---|---|---|---|
id | String | False | The 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.
| Name | Type | Description |
|---|---|---|
equipmentId | String (ULID) | The ULID of the equipment this property value belongs to. |
equipmentPropertyId | String (ULID) | The ULID of the equipment property that defines this value. |
dataType | String | The data type of the value. |
value | Mixed | The actual value. Type depends on the property's data type. |
id | String (ULID) | The ULID of the equipment property value. |
notes | String | Notes related to the property value. |
enabled | Boolean | Indicates if this property value is active. |
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
propertyValue = system.mes.equipment.getEquipmentPropertyValue('01JAP8RJBN-8ZTPXSGY-J9GSDPE1')
print(propertyValue)