Skip to main content

system.mes.productionOrder.getProductionOrderPropertyReferences

Description

Retrieves a list of references to a Production Order Properties record by its ID.

Syntax

system.mes.productionOrder.getProductionOrderPropertyReferences(id)

Parameters

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

Code Examples

# Retrieve the references for the production order property specified
property_references = system.mes.productionOrder.getProductionOrderPropertyReferences('01JPQKDYTM-1G81VA08-3QS948DK')

# Output the production order property references
print(property_references)