system.mes.equipment.getValueForEquipmentAndProperty
Description
Retrieves an Equipment Property Values record for a specific equipment and property combination.
Permissions
This method requires the EQUIPMENT.READ.GET permission.
Syntax
system.mes.equipment.getValueForEquipmentAndProperty(equipmentIdOrPath, propertyIdOrName)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
equipmentIdOrPath | String | False | The ID or path of the equipment. |
propertyIdOrName | String | False | The ID or name of the equipment property. |
Returns
Returns a JSON representation of the equipment property value. Returns nothing if no 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
value = system.mes.equipment.getValueForEquipmentAndProperty('Pumps/CentrifugalPumps/Pump-101', 'MaxFlowRate')
print(value)