Skip to main content
Version: V2 (Ignition 8.1)

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

ParameterTypeNullableDescription
idOrNameStringFalseThe 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)