Skip to main content

system.mes.unitOfMeasure.getUnitOfMeasureReferences

Description

Retrieves a list of references to a Units Of Measure record by its ID.

Syntax

system.mes.unitOfMeasure.getUnitOfMeasureReferences(id)

Parameters

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

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 unit of measure.

Code Examples

# Retrieve the references for the unit of measure specified
uom_references = system.mes.unitOfMeasure.getUnitOfMeasureReferences('01JS27F59C-BRW0RCQ0-VBC38S4K')

# Output the unit of measure references
print(uom_references)