# Tag value in Custom E-mail Message

**URL:** <https://forum.inductiveautomation.com/t/tag-value-in-custom-e-mail-message/12827>\
**Category:** Ignition\
**Created:** [March 21, 2017, 10:50pm UTC](https://forum.inductiveautomation.com/t/tag-value-in-custom-e-mail-message/12827 "2017-03-21T22:50:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adgreene](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@adgreene](https://forum.inductiveautomation.com/u/adgreene)\
**Post date:** [March 21, 2017, 10:50pm UTC](https://forum.inductiveautomation.com/t/tag-value-in-custom-e-mail-message/12827/1 "2017-03-21T22:50:38Z")

</div>

I’m trying to add the value of a client tag to a custom message for an alarm, but when I receive the alert e-mail the value of my tag is not being displayed.

I have this added as an expression in the custom message field:

```auto
"Machine Number: " + {[Client]MachineNumber} + "\n"
```

My e-mails reads "Machine Number: "

What am I doing wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 21, 2017, 11:05pm UTC](https://forum.inductiveautomation.com/t/tag-value-in-custom-e-mail-message/12827/2 "2017-03-21T23:05:00Z")

</div>

Client tags are just that - client scoped. Regular tags, and therefore alarms, are gateway scoped - meaning that a particular alarm that goes off will not know what client to read that client tag from - so it’s not able to read the value.

---

<div class="post-metadata">

**Author:** ![adam.morales](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/adam.morales/32/3405_2.png) [@adam.morales](https://forum.inductiveautomation.com/u/adam.morales)\
**Post date:** [March 21, 2017, 11:12pm UTC](https://forum.inductiveautomation.com/t/tag-value-in-custom-e-mail-message/12827/3 "2017-03-21T23:12:55Z")

</div>

Also, since the message is not really an expression, it cannot reference a tag value this way. What you can do instead is use a Set Property block to set a new alarm property to the result of an expression, which can read the tag.
