system.kanoa.lot.updateLotStateReasonField
Description
Updates the value of a specified field for a given lot state reason ID. If the field is 'enabled', updates the assetLink Table accordingly.Syntax
updateLotStateReasonField(lotStateReasonId, field, value, userId)Parameters:
Returns:
Code Examples
# Example usage
>updateLotStateReasonField = 1
>field = 'enabled'
>value = True
>userId = 5
>retVal, msg = system.kanoa.lot.updateLotStateReasonField(updateLotStateReasonField, field, value, userId)
>print(retVal) # Print the number of records modified