Skip to main content

system.mes.location.getLocationPropertyReferences

Description

Retrieves a list of references to a Location Properties by its ID or name.

Syntax

system.mes.location.getLocationPropertyReferences(idOrName)

Parameters

ParameterTypeDescription
idOrNameStringThe ULID or name of the location property to retrieve.

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 location property.

The JSON Objects in references has the following properties:

NameTypeDescription
fkColNameStringThe name of the foreign key column.
idString (ULID)The ULID of the object that is referencing the location property.

Code Examples

# Retrieve the references for the location property specified
property_references = system.mes.location.getLocationPropertyReferences('Cows')

# Output the location property references
print(property_references)