# Updating existing alarm Notes via script

**URL:** <https://forum.inductiveautomation.com/t/updating-existing-alarm-notes-via-script/83749>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [January 3, 2024, 4:14pm UTC](https://forum.inductiveautomation.com/t/updating-existing-alarm-notes-via-script/83749 "2024-01-03T16:14:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewBieNew](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@NewBieNew](https://forum.inductiveautomation.com/u/NewBieNew)\
**Post date:** [January 3, 2024, 4:14pm UTC](https://forum.inductiveautomation.com/t/updating-existing-alarm-notes-via-script/83749/1 "2024-01-03T16:14:15Z")

</div>

Hi there,

I have a tag browse tree where i want to select the tag and add/update desired "Notes"(Not the ack notes) in already existing alarm. I am trying to use system.tag.configure with system.tag.get configuration can anyone tell me what I am doing wrong. 🧐  
Thanks

This script is configured under a button action performed event.

```auto
def runAction(self, event):
	
	tagPath = self.getSibling("TagBrowseTree").props.selection.values[0]
	
	tagConfig = system.tag.getConfiguration(tagPath)
	
	tagConfig[0]['alarms'][0]['Notes'] = self.getSibling("TextArea").props.text
	
	system.tag.configure(tagPath, tagConfig, "o")
	
	self.getSibling("Label_0").props.text= 'Notes Updated Successfully'

```

---

<div class="post-metadata">

**Author:** ![NewBieNew](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@NewBieNew](https://forum.inductiveautomation.com/u/NewBieNew)\
**Post date:** [January 3, 2024, 8:02pm UTC](https://forum.inductiveautomation.com/t/updating-existing-alarm-notes-via-script/83749/2 "2024-01-03T20:02:57Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [January 3, 2024, 9:30pm UTC](https://forum.inductiveautomation.com/t/updating-existing-alarm-notes-via-script/83749/3 "2024-01-03T21:30:28Z")

</div>

Patience is key, this is an international forum, and timezones change when large amounts of users are active. expecting an answer in 4 hours from a volunteer user base is pretty impatient.

That said, chuck in a logger and print the output of `tagConfig` just after you assign it, then do the same just after you have changed the notes.  
Have a look and see if you are changing the correct pieces as intended.  
Also check the log for errors when you run the action.

On top of that, check out the example in this link:  
[https://docs.inductiveautomation.com/display/DOC81/system.tag.configure](https://docs.inductiveautomation.com/display/DOC81/system.tag.configure)  
There is instruction that the input is a list of tags and the output also a list of tags, so perhaps you need to follow the examples and see how they send their tag paths to the functions.

---

<div class="post-metadata">

**Author:** ![NewBieNew](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@NewBieNew](https://forum.inductiveautomation.com/u/NewBieNew)\
**Post date:** [January 3, 2024, 9:36pm UTC](https://forum.inductiveautomation.com/t/updating-existing-alarm-notes-via-script/83749/4 "2024-01-03T21:36:43Z")

</div>

Thanks for you quick response. I apologize and will work on my ability to wait patiently.

Really appreciate your help. 🙏🏽

---

<div class="post-metadata">

**Author:** ![NewBieNew](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@NewBieNew](https://forum.inductiveautomation.com/u/NewBieNew)\
**Post date:** [January 5, 2024, 4:45pm UTC](https://forum.inductiveautomation.com/t/updating-existing-alarm-notes-via-script/83749/5 "2024-01-05T16:45:10Z")

</div>

```auto
	
	tagPath = self.getSibling("TagBrowseTree").props.selection.values[0]
	
	from com.inductiveautomation.ignition.common.tags.paths.parser import TagPathParser
	
	path = tagPath
	
	ParentPath = TagPathParser.parse(path)
	
	tagConfig = system.tag.getConfiguration(tagPath)
	
	tagConfig[0]['alarms'][0]['Notes'] = self.getSibling("TextArea").props.text
	
	system.tag.configure(ParentPath.parentPath, tagConfig, "o")
	
	self.getSibling("Label_0").props.text= 'Notes Updated Successfully'

```

system.tag.configure needs a parent path I was initially using tag path.
