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:
Returns:
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