system.mes.equipment.deleteEquipmentPropertyValuesFor
Description
Deletes multiple Equipment Property Values records for a specific equipment, identified by property IDs or names.
Permissions
This method requires the EQUIPMENT.WRITE.DELETE permission.
Syntax
system.mes.equipment.deleteEquipmentPropertyValuesFor(equipmentIdOrPath, propertyIdOrNames)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
equipmentIdOrPath | String | False | The ID or path of the equipment. |
propertyIdOrNames | List<String> | False | A list of equipment property IDs or names to delete values for. |
Returns
If successful, an ApiResponse Object is returned with the success bool set True.
| Name | Type | Description |
|---|---|---|
success | Boolean | Indicates if the delete was successful. |
message | String | The reason why the deletion was successful or unsuccessful. |
data | String | The data associated with the deletion. |
error | String | The errors associated with the deletion. |
Code Examples
# Delete by path and property names
system.mes.equipment.deleteEquipmentPropertyValuesFor('Pumps/CentrifugalPumps/Pump-101', ['MaxFlowRate', 'MinFlowRate'])
# Delete by equipment ID and property IDs
system.mes.equipment.deleteEquipmentPropertyValuesFor('01ARZ3NDEKTSV4RRFFQ69G5FAV', ['01ARZ3NDEKTSV4RRFFQ69G5FAW', '01ARZ3NDEKTSV4RRFFQ69G5FAX'])