system.kanoa.lot.enableAssetLotStateLink
Description
Updates the enabled state of a lot state reason asset link.Syntax
enableAssetLotStateLink(lotStateReasonAssetLinkId, enabled)- int lotStateReasonAssetLinkId - Lot state reason asset link ID
- boolean enabled - New enabled state
- int - Number of records modified
Code Examples
# Example usage
lotStateReasonAssetLinkId = 1
enabled = True
recordsModified = system.kanoa.lot.enableAssetLotStateLink(lotStateReasonAssetLinkId, enabled)
print(recordsModified) # Print the number of records modified