# Acknowledge All outside of alert table

**URL:** <https://forum.inductiveautomation.com/t/acknowledge-all-outside-of-alert-table/1658>\
**Category:** Ignition\
**Created:** [March 18, 2010, 5:18pm UTC](https://forum.inductiveautomation.com/t/acknowledge-all-outside-of-alert-table/1658 "2010-03-18T17:18:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [March 18, 2010, 5:18pm UTC](https://forum.inductiveautomation.com/t/acknowledge-all-outside-of-alert-table/1658/1 "2010-03-18T17:18:48Z")

</div>

I noticed there was no APi reference for acknowledge all, so I made my own code.

`alerts = system.alert.queryAlertStatus(activeAndUnacked=1,clearAndUnacked=1)
for row in range(alerts.rowCount):
	system.alert.acknowledgeAlert(alerts.getValueAt(row,"System"),alerts.getValueAt(row,"Path"),alerts.getValueAt(row,"State Name"))
fpmi.tag.writeToTag("[]Discrete\Ack",1)`

---

<div class="post-metadata">

**Author:** ![jgreenewv](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@jgreenewv](https://forum.inductiveautomation.com/u/jgreenewv)\
**Post date:** [March 19, 2010, 3:00am UTC](https://forum.inductiveautomation.com/t/acknowledge-all-outside-of-alert-table/1658/2 "2010-03-19T03:00:26Z")

</div>

Thanks for this code. I had something similar put together, but it was much less elegant.
