Skip to main content

system.kanoa.lot.linkAssetLotStates

Description

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

Syntax

linkAssetLotStates(assetIdList, lotStateReasonIdList, userId)

Parameters:
  • assetIdList (list) - List of asset IDs
  • lotStateReasonIdList (list) - List of lot state reason IDs
  • userId (int) - User ID

  • Returns:
  • numRecordsCreated (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