Skip to main content

system.mes.inventory.getInventoryLotReferences

Description

Retrieves a list of references to a Inventory Lots record by its ID.

Syntax

system.mes.inventory.getInventoryLotReferences(id)

Parameters

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

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.

Code Examples

# Retrieve the references for the inventory lot specified
lot_references = system.mes.inventory.getInventoryLotReferences('01JE6F0CE9-T94PZD8R-TH9J01TJ')

# Output the inventory lot references
print(lot_references)