system.mes.meter.getMeterTypeReferences
Description
Retrieves a list of entities that reference a Meter Type record, preventing its deletion.
Permissions
This method requires the METERING.READ.GET permission.
Syntax
system.mes.meter.getMeterTypeReferences(idOrName)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
idOrName | String | False | The ID or name of the Meter Type to check references for. |
Returns
Returns a JSON object of referencing entities grouped by entity type.
Code Examples
# Get all references to a Meter Type
references = system.mes.meter.getMeterTypeReferences('Electricity')
# Output the references
print(references)