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
Parameter | Type | Description |
---|---|---|
id | String (ULID) | The ID of the inventory lot to retrieve. |
Returns
Returns a list of JSON objects. Each JSON object has the following properties:
Name | Type | Description |
---|---|---|
tableName | String | The name of the table that the reference is in. |
references | List<JSON Object> | List of JSON objects corresponding to references to the inventory lot. |
The JSON Objects in references has the following properties:
Name | Type | Description |
---|---|---|
fkColName | String | The name of the foreign key column. |
id | String (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)