# Alert template not working

**URL:** <https://community.influxdata.com/t/alert-template-not-working/6315>\
**Category:** Kapacitor\
**Tags:** kapacitor\
**Created:** [August 21, 2018, 4:38pm UTC](https://community.influxdata.com/t/alert-template-not-working/6315 "2018-08-21T16:38:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Ashish\_Sikarwar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ashish_sikarwar/32/2074_2.png) [@Ashish\_Sikarwar](https://community.influxdata.com/u/Ashish_Sikarwar)\
**Post date:** [May 12, 2020, 4:35pm UTC](https://community.influxdata.com/t/alert-template-not-working/6315/4 "2020-05-12T16:35:52Z")

</div>

Try this:

> [@Solution: Create custom HTTP body and access .tags and values. using row-template](https://community.influxdata.com/t/solution-create-custom-http-body-and-access-tags-and-values-using-row-template/13775):
>
> Main challenge was to access .tags and fields from template to create custom json body. ANd with alert-template you cannot access fields outside {{.Message}}, atleast what I had noticed. Check this out for more details: or Solution Use |alert node & httpPost() node in your tickscript Batch/Stream it works with both: Note you can also add custom tags… by using default() node. |alert() .details(‘details’) .crit(lambda: “cpuusage” \> crit) .message(message) .id(idVar) .idTag(idTag) .l…

Let me know if you get stuck.

---

_[View the full topic](https://community.influxdata.com/t/alert-template-not-working/6315)._
