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