Change tag alarm name by script

Hi,

Is it possible to change a tag alarm name with system.tag.configure() ?

Example with one tag:

tagPath ='[Test]TagName'

config = system.tag.getConfiguration(tagPath)[0]

for alarm in config['alarms']:
	if alarm['name'] == 'oldAlarmName':
		alarm['name'] = 'newAlarmName'
		
system.tag.configure('[Test]', config)
1 Like

Thanks

1 Like