# Making Consolidated Messages from the alarm pipeline look pr

**URL:** <https://forum.inductiveautomation.com/t/making-consolidated-messages-from-the-alarm-pipeline-look-pr/10122>\
**Category:** General Discussion\
**Created:** [June 12, 2015, 3:32pm UTC](https://forum.inductiveautomation.com/t/making-consolidated-messages-from-the-alarm-pipeline-look-pr/10122 "2015-06-12T15:32:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CJVR](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@CJVR](https://forum.inductiveautomation.com/u/CJVR)\
**Post date:** [June 12, 2015, 3:32pm UTC](https://forum.inductiveautomation.com/t/making-consolidated-messages-from-the-alarm-pipeline-look-pr/10122/1 "2015-06-12T15:32:15Z")

</div>

The the consolidate message generated does not look that nice. Is there any way to make the output an html e-mail or at least insert a carriage return between the alarms?

This:

3 alarm events have occurred: Alarm “Deviation Alarm” at “Primary Extruder - Zone 2” transitioned to Active at 11:17:11 Alarm “Deviation Alarm” at “Primary Extruder - Zone 4” transitioned to Active at 11:17:11 Alarm “Deviation Alarm” at “Primary Extruder - Zone 6” transitioned to Active at 11:17:11

to this:

3 alarm events have occurred:  
Alarm “Deviation Alarm” at “Primary Extruder - Zone 2” transitioned to Active at 11:17:11  
Alarm “Deviation Alarm” at “Primary Extruder - Zone 4” transitioned to Active at 11:17:11  
Alarm “Deviation Alarm” at “Primary Extruder - Zone 6” transitioned to Active at 11:17:11

---

<div class="post-metadata">

**Author:** ![CJVR](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@CJVR](https://forum.inductiveautomation.com/u/CJVR)\
**Post date:** [June 12, 2015, 6:00pm UTC](https://forum.inductiveautomation.com/t/making-consolidated-messages-from-the-alarm-pipeline-look-pr/10122/2 "2015-06-12T18:00:25Z")

</div>

Using this:

[code]{alarmEvents.Count} alarm events have occurred:  
{{

- “{name}” on “{displayPath}” went into alarm at {eventTime|hh:mm:ss a}}}[/code]

I got this:

[code]7 alarm events have occurred:

- “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 1” went into alarm at 01:58:23 PM

- “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 2” went into alarm at 01:58:23 PM

- “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 3” went into alarm at 01:58:23 PM

- “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 4” went into alarm at 01:58:23 PM

- “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 5” went into alarm at 01:58:23 PM

- “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 6” went into alarm at 01:58:23 PM

- “Deviation Alarm” on “Line 3 - Primary Extruder - Zone 7” went into alarm at 01:58:23 PM  
[/code]  
I can not find any documentation on the format of the consolidated e-mail string. Can someone point me to it?

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [August 3, 2015, 1:47pm UTC](https://forum.inductiveautomation.com/t/making-consolidated-messages-from-the-alarm-pipeline-look-pr/10122/3 "2015-08-03T13:47:53Z")

</div>

I can’t see any either. Kevin Herron said in [this post](https://inductiveautomation.com/forum/viewtopic.php?f=50&t=13989) that the documentation was being completely written for 7.8. Hopefully this will be included!

---

<div class="post-metadata">

**Author:** ![MikieC](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@MikieC](https://forum.inductiveautomation.com/u/MikieC)\
**Post date:** [January 31, 2020, 5:16pm UTC](https://forum.inductiveautomation.com/t/making-consolidated-messages-from-the-alarm-pipeline-look-pr/10122/4 "2020-01-31T17:16:17Z")

</div>

You have to use html tags:

Modifying the default consolidated message would look like this:

\<html\>{alarmEvents.Count} alarm events have occured:\<br\>  
{{Alarm “{label}” transitioned to {eventState} at {eventTime|hh:mm:ss}\<br\>}}

* * *

This gets you the following:

3 alarm events have occurred:  
Alarm “Label for Alarm Test 1 Goes here” transitioned to Active at 12:12:39  
Alarm “Label for Alarm Test 2 Goes here” transitioned to Active at 12:12:39  
Alarm “Label for Alarm Test 3 Goes here” transitioned to Active at 12:12:39

---

<div class="post-metadata">

**Author:** ![wbaker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wbaker/32/85315_2.png) [@wbaker](https://forum.inductiveautomation.com/u/wbaker)\
**Post date:** [March 5, 2023, 12:50pm UTC](https://forum.inductiveautomation.com/t/making-consolidated-messages-from-the-alarm-pipeline-look-pr/10122/5 "2023-03-05T12:50:31Z")

</div>

This thread helped me with our SMS format for consolidation and wanted to share what we did.

- Note - we are using the Twilio Module from IA. Not sure if there'd be a difference using other sms modules.

Expression Block

```auto
{alarmEvents.Count} alarm events have occurred.
	 
{{
Alarm - {eventTime|MMM dd, YYYY hh:mm:ss aa}
{displayPath}
}}

```

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/4/846429ba2d9da9434c226cc2bc33ad2cfea22217.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/7/9796f1d9e3aee4f776c583ec5782ce56e95090cc.png)
