Skip to main content

system.mes.inventory.getAllInventoryForLocationAndChildren

Description

Retrieves all the Inventories records at a given location and its children.

Syntax

system.mes.inventory.getAllInventoryForLocationAndChildren(locationIdOrPath)

Parameters

ParameterTypeDescription
locationIdOrPathStringThe ID or path of the location associated with the inventory.

Returns

Returns a list of JSON objects representing all inventories at the given location and its children.

Example Usage

# Retrieve all inventories at a given location and its children
all_inventories = system.mes.inventory.getAllInventoryForLocationAndChildren('DairyCo')

# Output the list of inventories
print(all_inventories)