Skip to main content

system.mes.location.getLocationGroupReferences

Description

Retrieves a list of references to a Location Groups record by its ID.

Syntax

system.mes.location.getLocationGroupReferences(id)

Parameters

ParameterTypeDescription
idString (ULID)The ID of the location group 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.

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.

Code Examples

# Retrieve the references for the location group specified
group_references = system.mes.location.getLocationGroupReferences('DairyCo')

# Output the location group references
print(group_references)