# Acknowledge specific alarm / tag

**URL:** <https://forum.inductiveautomation.com/t/acknowledge-specific-alarm-tag/78614>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [August 31, 2023, 12:48pm UTC](https://forum.inductiveautomation.com/t/acknowledge-specific-alarm-tag/78614 "2023-08-31T12:48:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrol\_Jeo\_Gutierrez](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/henrol_jeo_gutierrez/32/50993_2.png) [@Henrol\_Jeo\_Gutierrez](https://forum.inductiveautomation.com/u/Henrol_Jeo_Gutierrez)\
**Post date:** [August 31, 2023, 12:48pm UTC](https://forum.inductiveautomation.com/t/acknowledge-specific-alarm-tag/78614/1 "2023-08-31T12:48:39Z")

</div>

I created a popup faceplate that shows alarms status of a specific Tag (UDT).  
If it alarms ( it could HH, PH, PL or LL), what I want is to acknowledge that alarm on my faceplate, I have a button "Ack". But I don't know how am I going to acknowledge that specific alarm.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/f/2f89bad565e1a40654c6b5447e1fa858ef1aba5f.png)

I hope some could show me, or what I need to study.  
I see this document about

```auto
system.alarm.acknowledge(alarmIds,notes, username)

```

[https://docs.inductiveautomation.com/display/DOC79/system.alarm.acknowledge](https://docs.inductiveautomation.com/display/DOC79/system.alarm.acknowledge)

However, I do not know how to reference or know the alarmId specific to the tag binded to my popup faceplate.

I hope someone in community already found out solution to my problem.

Thanks and regards,

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [August 31, 2023, 2:02pm UTC](https://forum.inductiveautomation.com/t/acknowledge-specific-alarm-tag/78614/2 "2023-08-31T14:02:43Z")

</div>

Like suggested in [this post](https://forum.inductiveautomation.com/t/acknowledging-alarms-based-on-window-content/27594/2), you can try using `queryStatus` and filter to get just the specific tag. That will give you a list of alarm events that you can iterate using a script like [here](https://forum.inductiveautomation.com/t/ack-all-from-external-button/6680/5) and get the IDs.

Your `queryStatus` call would probably look something like

```auto
alarms = system.alarm.queryStatus(status=["ActiveUnacked"], path=[my_tag_path])

```

where I'm assuming you have your tag path as a binding on the popup already.

EDIT: Like mentioned by @bschroeder, `queryStatus` is pretty intensive so you don't want to call it directly, use a message handler or `invokeAsynchronous`

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [August 31, 2023, 2:09pm UTC](https://forum.inductiveautomation.com/t/acknowledge-specific-alarm-tag/78614/3 "2023-08-31T14:09:19Z")

</div>

Make sure that when you issue the script todo this

```auto
alarms = system.alarm.queryStatus(status=["ActiveUnacked"], path=[my_tag_path])

```

that you call that using system.util.invokeAsynchronous [system.util.invokeAsynchronous - Ignition User Manual 7.9 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC79/system.util.invokeAsynchronous).

Otherwise you will freeze your client GUI while it is doing the query to the gateway.

Another option would be to put a message handler on the gateway to handle the acknowledgment of the alarm.

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [August 31, 2023, 2:11pm UTC](https://forum.inductiveautomation.com/t/acknowledge-specific-alarm-tag/78614/4 "2023-08-31T14:11:45Z")

</div>

Thanks, I'll update my post with that info as well for anyone looking in the future.

---

<div class="post-metadata">

**Author:** ![Henrol\_Jeo\_Gutierrez](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/henrol_jeo_gutierrez/32/50993_2.png) [@Henrol\_Jeo\_Gutierrez](https://forum.inductiveautomation.com/u/Henrol_Jeo_Gutierrez)\
**Post date:** [August 31, 2023, 2:40pm UTC](https://forum.inductiveautomation.com/t/acknowledge-specific-alarm-tag/78614/5 "2023-08-31T14:40:08Z")

</div>

Thanks for all your suggestions,

I will try all this things and comeback here if I figure it out.

Regards,
