system.kanoa.lot.getAssetLotStateReasons
Description
Retrieves asset lot state reasons filtered by the provided parameters.Syntax
getAssetLotStateReasons(paramsDict)- Dictionary paramsDict - Parameters for filtering asset lot state reasons. Valid keys include lotStateReasonAssetLinkId, lotStateReasonEnabled, linkEnabled, assetPath, assetId, assetIdList, lotStateId, lotStateName, lotStateReasonId, and lotStateReasonName.
- pyDataset - Asset lot state reasons dataset
Code Examples
# Example usage
paramsDict = {'lotStateReasonAssetLinkId': 4, 'lotStateReasonEnabled': True, 'lotStateName': 'Scrap', 'lotStateId': 1, 'linkEnabled': True, 'assetPath': 'Kanoa Industries%', 'assetId': 1, 'scrapReasonId': 1, 'scrapReasonName': 'Color'}
assetLotStateReasons = system.kanoa.lot.getAssetLotStateReasons(paramsDict)
print(assetLotStateReasons) # Print the retrieved asset lot state reasons