Skip to main content

system.kanoa.quality.config.updateDataSource(attrInfo, userId)

Updates an attributeDataSource. All attrInfo keys are required.


Parameters

attrInfo Dictionary

- assetIdInteger
- attributeDataSourceIdInteger
- attributeIdInteger
- enabledBoolean
- ignoreZeroValuesBoolean
- scaleFactorFloat
- sourceTagPathString

userId Integer: Id of user executing the function


Returns

# of records modified Integer
msg String None if success


Example

attrInfo = {
'attributeDataSourceId': 7,
'attributeId': 3,
'assetId': 5,
'sourceTagPath': 'some tag path',
'scaleFactor': 1.0,
'ignoreZeroValues': True,
'enabled': True
}
userId = 5
retVal, msg = system.kanoa.quality.config.updateDataSource(attrInfo, userId)