Skip to main content
Version: V3 (Ignition 8.3)

system.mes.inventory.operation.getAllLocationPathsWithInventoryOperations

Description​

Retrieves all Location paths for locations that have associated Inventory Operations. Optionally filters by a path prefix.

Syntax​

system.mes.inventory.operation.getAllLocationPathsWithInventoryOperations()
system.mes.inventory.operation.getAllLocationPathsWithInventoryOperations(pathPrefix)

Parameters​

Method 1: No Parameters​

ParameterTypeNullableDescription
None--This method does not take any parameters.

Method 2: With Path Prefix​

ParameterTypeNullableDescription
pathPrefixStringFalseThe path prefix to filter locations by.

Returns​

Returns a list of strings representing location paths that have associated inventory operations.

Code Examples​

# Retrieve all location paths with inventory operations
invOpPaths = system.mes.inventory.operation.getAllLocationPathsWithInventoryOperations()
print(invOpPaths)

# Retrieve only inventory operation location paths under a specific branch
filteredPaths = system.mes.inventory.operation.getAllLocationPathsWithInventoryOperations('DairyCo/Plant1/')
print(filteredPaths)