Skip to main content

system.mes.material.getMaterialPropertyValueReferences

Description

Retrieves a list of references to a Material Property Values by its ID.

Syntax

system.mes.material.getMaterialPropertyValueReferences(id)

Parameters

ParameterTypeDescription
idStringThe ULID of the material property value 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 value.

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 value.

Code Examples

# Retrieve the references for the material property value specified
property_value_references = system.mes.material.getMaterialPropertyValueReferences('01JRDP4APW-5D56ZQ8C-8949XKYT')

# Output the material property value references
print(property_value_references)