system.kanoa.asset.addCounter(assetId, counterName, counterTypeName, userId)
Called by tagUDT assetOEE\Configuration\infeedCounterId etc. to initialize the counterId for storing the count value against. If the counter does not exist, it will be created.
Parameters
assetId Integer: Id of asset
counterName String: name of counter
counterTypeName String: type of counter
userId Integer
Returns
counterId Integer
Example
assetId = 18
counterName = 'caps'
counterTypeName = 'infeed'
userId = 123
counterId = system.kanoa.asset.addCounter(assetId, counterName, counterTypeName, userId)