# Custom Alerting

**URL:** <https://forum.inductiveautomation.com/t/custom-alerting/4140>\
**Category:** Ignition\
**Created:** [March 13, 2012, 7:16pm UTC](https://forum.inductiveautomation.com/t/custom-alerting/4140 "2012-03-13T19:16:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecujak](https://avatars.discourse-cdn.com/v4/letter/e/839c29/32.png) [@ecujak](https://forum.inductiveautomation.com/u/ecujak)\
**Post date:** [March 13, 2012, 7:16pm UTC](https://forum.inductiveautomation.com/t/custom-alerting/4140/1 "2012-03-13T19:16:49Z")

</div>

I am looking for a way to script the creation of an alert and Generate custom emails.

Some items I would like to look into:

1. Is there an ignition funtion availible to manually create an alert using a script?  
-system.alert.newAlert  
-`system.alert.newAlert(system, path, stateName, minSeverity, maxSeverity, activeAndUnacked, activeAndAcked, clearAndUnacked, clearAndAcked, flatten, displayPath)`

2. Would it be best to create an Alert\_RandomName\_Status tag with type integer(for level) and update notes to hold alert info.  
-if so, how do I update the DBTags AlertNotes property from a client?

Info on both would be nice to have.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/9e408c2aff0de99b8e72b1d9e4eb7b720d05bb1b.jpg)

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [March 13, 2012, 9:07pm UTC](https://forum.inductiveautomation.com/t/custom-alerting/4140/2 "2012-03-13T21:07:59Z")

</div>

I’m not sure about #1, but you can insert tags on custom email messages in regards #2.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 13, 2012, 9:10pm UTC](https://forum.inductiveautomation.com/t/custom-alerting/4140/3 "2012-03-13T21:10:28Z")

</div>

Right now there is no function to create new alerts on tags. You have to set it up through the SQLTags browser in the designer. If you put tags into a database driving provider you can dynamically make changes to tags.

---

<div class="post-metadata">

**Author:** ![ecujak](https://avatars.discourse-cdn.com/v4/letter/e/839c29/32.png) [@ecujak](https://forum.inductiveautomation.com/u/ecujak)\
**Post date:** [March 14, 2012, 4:07pm UTC](https://forum.inductiveautomation.com/t/custom-alerting/4140/4 "2012-03-14T16:07:30Z")

</div>

Can you show me how to create an alert using a script based on my made up function (system.alert.newAlert).

When I simply add an alert in the ALERT\_LOG table manually, it doesn’t show in the Alert Summary Component.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [March 14, 2012, 4:24pm UTC](https://forum.inductiveautomation.com/t/custom-alerting/4140/5 "2012-03-14T16:24:10Z")

</div>

The only way to make that function right now is through the Module SDK. With that you can make your own system function to create new alerts.
