Skip to main content

system.mes.equipment.getEquipmentReferences

Description

Retrieves a list of references to an Equipment record by its ID or path.

Permissions

This method requires the EQUIPMENT.READ.GET permission.

Syntax

system.mes.equipment.getEquipmentReferences(idOrPath)

Parameters

ParameterTypeNullableDescription
idOrPathStringFalseThe ID or path of the equipment.

Returns

Returns a list of JSON objects. Each JSON object has the following properties:

NameTypeDescription
tableNameStringThe name of the table that the reference is in.
referencesList<JSON Object>List of JSON objects corresponding to references to the equipment.

The JSON Objects in references has the following properties:

NameTypeDescription
fkColNameStringThe name of the foreign key column.
idString (ULID)The ULID of the object referencing the equipment.

Code Examples

references = system.mes.equipment.getEquipmentReferences('Pumps/CentrifugalPumps/Pump-101')
print(references)