Skip to main content

system.kanoa.lot.getRoutes(paramsDict)

Returns routes filtered by the given parameters


Parameters

paramsDict Dictionary

- enabledBoolean
- itemClassIdInteger
- itemClassPathString
- itemIdInteger
- itemPathString
- routeIdInteger
- routeNameString

Returns

routeData pyDataset


Example

# Get all enabled routes
paramsDict = {"enabled": True}
routeData = system.kanoa.lot.getRoutes(paramsDict=paramsDict)

# Get routes by item ID
paramsDict = {"itemId": 1205}
routeData = system.kanoa.lot.getRoutes(paramsDict=paramsDict)

# Get routes by route name (LIKE search)
paramsDict = {"routeName": "%Assembly%"}
routeData = system.kanoa.lot.getRoutes(paramsDict=paramsDict)

# Get routes by item class path
paramsDict = {"itemClassPath": "%/Products/Widgets/%"}
routeData = system.kanoa.lot.getRoutes(paramsDict=paramsDict)

# Get a specific route by ID
paramsDict = {"routeId": 9}
routeData = system.kanoa.lot.getRoutes(paramsDict=paramsDict)