system.mes.inventory.getAllLocationPathsWithStorageAllowed
Description
Retrieves all Location paths for locations that have inventory storage allowed (i.e., their storage strategy is not NO_STORAGE). Optionally filters by a path prefix.
Syntax
system.mes.inventory.getAllLocationPathsWithStorageAllowed()
system.mes.inventory.getAllLocationPathsWithStorageAllowed(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 inventory storage allowed.
Code Examples
# Retrieve all location paths with storage allowed
storagePaths = system.mes.inventory.getAllLocationPathsWithStorageAllowed()
print(storagePaths)
# Retrieve only storage-allowed location paths under a specific branch
filteredPaths = system.mes.inventory.getAllLocationPathsWithStorageAllowed('DairyCo/Plant1/')
print(filteredPaths)