Skip to main content

system.mes.material.getMaterialPropertyReferences

Description

Retrieves a list of references to a Material Properties by its ID.

Syntax

system.mes.material.getMaterialPropertyReferences(id)

Parameters

ParameterTypeDescription
idString (ULID)The ULID of the material 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 material 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 material property.

Code Examples

# Retrieve the references for the material property specified
property_references = system.mes.material.getMaterialPropertyReferences('01JQY39KNJ-E6AH9CCK-WM2XMMRW')

# Output the material property references
print(property_references)