system.kanoa.lot.linkAssetLotStates
Description
Links a list of asset IDs with a list of lot state reason IDs.Syntax
linkAssetLotStates(assetIdList, lotStateReasonIdList, userId)- list assetIdList - List of asset IDs
- list lotStateReasonIdList - List of lot state reason IDs
- int userId - User ID
- 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