system.kanoa.asset.addAssetAttribute(assetId, attrName, attrValue, userId)
Adds an attribute value for the asset. If the assetAttribute already exists, it will update it.
Parameters
assetId Integer: Id of asset
attrName String: Name of attribute to add
attrValue String: Value to set attribute to
userId Integer
Returns
assetAttributeId Integer
msg String Returns whether the attribute value was added or updated
Example
assetId = 123
attrName = 'Attribute1'
attrValue = 'Value1'
userId = 456
assetAttributeId, message = system.kanoa.asset.addAssetAttribute(assetId, attrName, attrValue, userId)