Skip to main content

system.kanoa.attribute.updateAttributeAssetLink(attrInfo, userId)

Updates an attributeAssetLink


Parameters

attrInfo Dictionary

- assetIdInteger
- attributeAssetLinkIdInteger
- attributeIdInteger
- enabledBoolean
- ignoreZeroValuesBooleanIf true, zero values coming from a tag are ignored
- scaleFactorIntegerScaling factor to be applied to the value pulled from a tag
- sourceTagPathStringtagPath 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)