system.kanoa.attribute.updateAttributeAssetLink(attrInfo, userId)
Updates an attributeAssetLink
Parameters
attrInfo Dictionary
| - assetId | Integer | |
| - attributeAssetLinkId | Integer | |
| - attributeId | Integer | |
| - enabled | Boolean | |
| - ignoreZeroValues | Boolean | If true, zero values coming from a tag are ignored |
| - scaleFactor | Integer | Scaling factor to be applied to the value pulled from a tag |
| - sourceTagPath | String | tagPath if value is to be pulled from a tag |
userId Integer
Returns
# of records modified Integer
msg String None if success
Example
attrAssetInfo = {
'attributeAssetLinkId': 67,
'attributeId': 3,
'assetId': 5,
'sourceTagPath': '[Kanoa]Kanoa Box Co/Box Plant/Packaging/Box Line 1/QDS/Compressor1/hoa',
'scaleFactor': 1.0,
'ignoreZeroValues': True,
'enabled': True
}
userId = 123
modifiedRecords, msg = system.kanoa.attribute.updateAttributeAssetLink(attrAssetInfo, userId)