Skip to main content

system.kanoa.asset.updateAssetModeField(modeAssetLinkId, field, value, userId)

Updates the field with the passed value for the assetModeLink


Parameters

modeAssetLinkId Integer: Id of asset mode link to update
field String: Field name to update. Valid options are assetId, modeId, enabled, autoSchedule
value String: Value to update to
userId Integer: Id of user executing the function


Returns

# of records modified Integer
message String None if success


Example

modeAssetLinkId = 123
field = 'enabled'
value = False
userId = 456
recordsModified, message = system.kanoa.asset.updateAssetModeField(modeAssetLinkId, field, value, userId)