Skip to main content

system.kanoa.lot.linkAssetLotStates

This function is part of the kanoaOPS module

Description

Links a list of asset IDs with a list of lot state reason IDs.

Syntax

linkAssetLotStates(assetIdList, lotStateReasonIdList, userId)
  • Parameters
      list assetIdList - List of asset IDs
      list lotStateReasonIdList - List of lot state reason IDs
      int userId - User ID
  • Returns
      int - Number of records created
  • Code Examples

    # Example usage
    assetIdList = [1, 2, 3]
    lotStateReasonIdList = [4, 5, 6]
    userId = 123
    recordsCreated = system.kanoa.lot.linkAssetLotStates(assetIdList, lotStateReasonIdList, userId)
    print(recordsCreated) # Print the number of records created