09-05-2018
06:27 AM
- last edited on
03-14-2019
02:18 PM
by
NIadmin
Hi,
I'm looking into Notification template and am wondering how to mention the tag name that has the actual alarm.
The help documentation only mentions the value and the system (specifying-notification-settings)
My use case is:
I have multiple systems, each system monitors assets. I want to notify the user which asset has an alarm.
Thanks.
Solved! Go to Solution.
09-05-2018 01:59 PM
Unfortunately, I don't think you can specify the tag path in the template. That is probably just an oversight on our part and I'll look at seeing if we can get it added in a future release.
In the meantime, you can specify any property you want on the tag (i.e. label or display_name) and include that as an argument < > in your template.
09-06-2018 04:49 AM
Do mean that in case my tag has a property called "type" I can add <type> in my message and it will be replace by the value in an actual notification?
What happens if the property doesn't exist for a tag?
09-06-2018 03:24 PM
Yes. If you put a property in brackets (ex: <prop_name>), it will inline the value of that property in the email it sends out. You can use that to include the name of the tag by including a property called something like "name" with its value being the tag's name.
If the property doesn't exist on the tag, the email will include the actual bracket as a string and won't try to replace the bracket with a value.