Skip to main content

system.kanoa.lot.getAssetLotStateReasons

This function is part of the kanoaOPS module

Description

Retrieves asset lot state reasons filtered by the provided parameters.

Syntax

getAssetLotStateReasons(paramsDict)
  • Parameters
      Dictionary paramsDict - Parameters for filtering asset lot state reasons. Valid keys include lotStateReasonAssetLinkId, lotStateReasonEnabled, linkEnabled, assetPath, assetId, assetIdList, lotStateId, lotStateName, lotStateReasonId, and lotStateReasonName.
  • Returns
      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