# system.kanoa.attribute.addAttributeAssetLink(attrAssetInfo, userId)

Adds a new attributeAssetLink

---
### Parameters
**attrAssetInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - assetId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - attributeId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - ignoreZeroValues</td><td>Boolean</td><td>If true, zero values coming from a tag are ignored</td></tr>	
 	<tr><td> - scaleFactor</td><td>Integer</td><td>Scaling factor to be applied to the value pulled from a tag</td></tr>	
 	<tr><td> - sourceTagPath</td><td>String</td><td>tagPath if value is to be pulled from a tag</td></tr>	
	</tbody>
</table>

**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**attributeAssetLinkId** `Integer`<br />
**msg** `String` None if success<br />

---
### Example
```python
attrAssetInfo = {
  '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
attributeAssetLinkId, msg = system.kanoa.attribute.addAttributeAssetLink(attrAssetInfo, userId)
```
