Skip to main content

system.mes.operation.getOperationReferences

Description

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

Syntax

system.mes.operation.getOperationReferences(id)

Parameters

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

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.

Code Examples

# Retrieve the references for the operation specified
operation_references = system.mes.operation.getOperationReferences('01JPBCPKSR-972W3V0Y-H00NNSKQ')

# Output the operation references
print(operation_references)