Skip to main content

system.mes.inventory.getInventoryLotRecordReferences

Description

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

Syntax

system.mes.inventory.getInventoryLotRecordReferences(id)

Parameters

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

Code Examples

# Retrieve the references for the inventory lot record specified
lot_record_references = system.mes.inventory.getInventoryLotRecordReferences('VQNX3P98-01JE6QXQX0-993FMEHT')

# Output the inventory lot record references
print(lot_record_references)