Skip to main content

system.mes.operation.getOperationRecordReferences

Description

Retrieves a list of references to an Operation Records object by its ID.

Syntax

system.mes.operation.getOperationRecordReferences(id)

Parameters

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

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 operation record.

Code Examples

# Retrieve the references for the operation record specified
operation_record_references = system.mes.operation.getOperationRecordReferences('01JS20DCWR-PBFZR1MX-2SA37XFC')

# Output the operation record references
print(operation_record_references)