system.mes.operation.getAllLocationPathsWithOperations
Description
Retrieves all Location paths for locations that have associated Operations. Optionally filters by a path prefix.
Syntax
system.mes.operation.getAllLocationPathsWithOperations()
system.mes.operation.getAllLocationPathsWithOperations(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 operations.
Code Examples
# Retrieve all location paths with operations
opPaths = system.mes.operation.getAllLocationPathsWithOperations()
print(opPaths)
# Retrieve only operation location paths under a specific branch
filteredPaths = system.mes.operation.getAllLocationPathsWithOperations('DairyCo/Plant1/')
print(filteredPaths)