system.mes.material.getMaterialClassReferences
Description
Retrieves a list of references to a Material Classes record by its ID or path.
Syntax
system.mes.material.getMaterialClassReferences(idOrPath)
Parameters
Parameter | Type | Description |
---|---|---|
idOrPath | String | The ID or path of the material class 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 material class. |
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 material class. |
Code Examples
# Retrieve the references for the material class specified
material_class_references = system.mes.material.getMaterialClassReferences('RAW')
# Output the material class references
print(material_class_references)