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
| Parameter | Type | Nullable | Description |
|---|---|---|---|
idOrName | String | False | The ULID or name of the location property to retrieve. |
Returns
Returns a list of JSON objects. Each JSON object has the following properties:
| Name | Type | Description |
|---|---|---|
tableName | String | The name of the table that the reference is in. |
references | List<JSON Object> | List of JSON objects corresponding to references to the location property. |
The JSON Objects in references has the following properties:
| Name | Type | Description |
|---|---|---|
fkColName | String | The name of the foreign key column. |
id | String (ULID) | The ULID of the object that is referencing the location property. |
Code Examples
# Retrieve the references for the location property specified
propertyReferences = system.mes.location.getLocationPropertyReferences('Cows')
# Output the location property references
print(propertyReferences)