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
| Parameter | Type | Nullable | Description |
|---|---|---|---|
| None | - | - | This method does not take any parameters. |
Method 2: With Path Prefix
| Parameter | Type | Nullable | Description |
|---|---|---|---|
pathPrefix | String | False | The 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)