<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Does Dynatrace Email Notification Problem Body Support JavaScript? in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/290886#M6058</link>
    <description>&lt;P&gt;Does this restriction also apply for HTML formatting? I am trying something similar with a Workflow sending an email with a html table embedded that holds data from DQL .&lt;/P&gt;&lt;P&gt;Is that possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Dec 2025 00:01:25 GMT</pubDate>
    <dc:creator>txvepr</dc:creator>
    <dc:date>2025-12-05T00:01:25Z</dc:date>
    <item>
      <title>Does Dynatrace Email Notification Problem Body Support JavaScript?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/270805#M5462</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am working on customizing the &lt;STRONG&gt;Dynatrace email problem notification&lt;/STRONG&gt; as per client requirements in a &lt;STRONG&gt;Dynatrace Managed environment&lt;/STRONG&gt;. I have successfully formatted most of the email using &lt;STRONG&gt;HTML&lt;/STRONG&gt; and &lt;STRONG&gt;inline CSS&lt;/STRONG&gt; to meet the expected design.&lt;/P&gt;
&lt;P&gt;However, I am facing an issue with the final customization. I need to &lt;STRONG&gt;dynamically change the color and format of the problem details&lt;/STRONG&gt; based on the &lt;STRONG&gt;severity level&lt;/STRONG&gt; of the problem. Since &lt;STRONG&gt;HTML and inline CSS&lt;/STRONG&gt; alone cannot achieve this conditional styling, I attempted to use &lt;STRONG&gt;JavaScript&lt;/STRONG&gt; for applying color changes based on severity.&lt;/P&gt;
&lt;P&gt;Unfortunately, the &lt;STRONG&gt;JavaScript does not seem to work&lt;/STRONG&gt; in the email body.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_left:"&gt;🔍&lt;/span&gt; &lt;STRONG&gt;Can anyone confirm if JavaScript is supported in the Dynatrace problem notification email body?&lt;/STRONG&gt; Or suggest any alternative approaches to achieve conditional styling based on severity?&lt;BR /&gt;&lt;BR /&gt;Please check the below problem body for the same.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta http-equiv="Content-Type" content="text/html;charset=us-ascii"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;table style="font-family: arial, sans-serif; border-collapse: collapse; width: 100%; max-width: 50rem;"&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td style="border: solid #B42C2F; border-width: medium; color: #000000; text-shadow: 0px 0px 2px #ffffff; background-color: #B42C2F; border-style: solid; border-color: #B42C2F; border-width: medium;" width="30%"&amp;gt;CRITICAL Event&amp;lt;/td&amp;gt;
            &amp;lt;td style="border-style: none;"&amp;gt;&amp;lt;/td&amp;gt;
            &amp;lt;td style="border-style: none;"&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td style="border-style: solid; border-color: #B42C2F; border-width: medium;" colspan="3"&amp;gt;
                &amp;lt;h1 style="font-size: 20px; font-family: arial, sans-serif;"&amp;gt;Critical Event Notification&amp;lt;/h1&amp;gt;
                &amp;lt;table style="font-family: arial, sans-serif; border-collapse: collapse; width: 100%; max-width: 50rem;"&amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px; width: 25%;"&amp;gt;Node Name&amp;lt;/td&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px;"&amp;gt;Server-01&amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px; width: 25%;"&amp;gt;Business Service&amp;lt;/td&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px;"&amp;gt; Test Processing&amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px; width: 25%;"&amp;gt;First Occurrence (Asia/Dubai)&amp;lt;/td&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px;"&amp;gt;2023-10-25 14:30:00&amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                    &amp;lt;tr&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px; width: 25%;"&amp;gt;Organization&amp;lt;/td&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px;"&amp;gt;ABCD Test Processing&amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                    &amp;lt;tr style="color: #B42C2F;"&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px; width: 25%;"&amp;gt;Message&amp;lt;/td&amp;gt;
                        &amp;lt;td style="border: 1px solid #dddddd; text-align: left; padding: 2px;"&amp;gt;High CPU usage detected&amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                &amp;lt;/table&amp;gt;
                &amp;lt;table style="border: none;"&amp;gt;
                    &amp;lt;tr style="border: none;"&amp;gt;
                        &amp;lt;td style="border: none; width: 12px;"&amp;gt;&amp;lt;/td&amp;gt;
                        &amp;lt;td style="border: none;"&amp;gt;
                            &amp;lt;a href="https://example.com/event/123" style="background-color: #B42C2F; border: none; color: #000000; padding: 15px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; font-family: arial, sans-serif; margin: 4px 2px; cursor: pointer; border-radius: 12px;"&amp;gt;View This Event&amp;lt;/a&amp;gt;
                        &amp;lt;/td&amp;gt;
                        &amp;lt;td style="border: none; width: 12px;"&amp;gt;&amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                &amp;lt;/table&amp;gt;
                &amp;lt;table style="border: none;"&amp;gt;
                    &amp;lt;tr style="border: none;"&amp;gt;
                        &amp;lt;td style="border: none; width: 12px;"&amp;gt;&amp;lt;/td&amp;gt;
                    &amp;lt;/tr&amp;gt;
                &amp;lt;/table&amp;gt;
            &amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
    &amp;lt;/table&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 10:33:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/270805#M5462</guid>
      <dc:creator>Sanket_Molavade</dc:creator>
      <dc:date>2025-02-25T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Does Dynatrace Email Notification Problem Body Support JavaScript?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/290149#M6028</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/53319"&gt;@Sanket_Molavade&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;According to this Documentation article it is not possible at the moment:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/automation-workflows-email#format-email" target="_self"&gt;Format email&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;Attaching an image or inserting JavaScript code into the email body is impossible. It's just shown as plain text.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 13:53:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/290149#M6028</guid>
      <dc:creator>MaciejNeumann</dc:creator>
      <dc:date>2025-11-24T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Does Dynatrace Email Notification Problem Body Support JavaScript?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/290886#M6058</link>
      <description>&lt;P&gt;Does this restriction also apply for HTML formatting? I am trying something similar with a Workflow sending an email with a html table embedded that holds data from DQL .&lt;/P&gt;&lt;P&gt;Is that possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 00:01:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/290886#M6058</guid>
      <dc:creator>txvepr</dc:creator>
      <dc:date>2025-12-05T00:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Does Dynatrace Email Notification Problem Body Support JavaScript?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/291486#M6080</link>
      <description>&lt;P&gt;through workflows , yes , you can run the DQL in a block and give the result to the Java Script blocks for formatting in to a markdown table and then add Jinja Expressions to refer to the JS output in the send notification Email block&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 13:08:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/291486#M6080</guid>
      <dc:creator>O11y_Noob</dc:creator>
      <dc:date>2025-12-15T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Does Dynatrace Email Notification Problem Body Support JavaScript?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/292616#M6150</link>
      <description>&lt;P&gt;This seems to be only to a point-formatting- is only being able to Bold or italicize the text. However, We need to be able to format an output in a Professional, table layout much like the original post wants. The email should be able to show an HTML based table of data.&amp;nbsp; &amp;nbsp;We can do the javascript step to design the html output, but the email step does not render it. Does that make sense?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Executives would like a formal looking output rather than basic rows of data. This would look much better for Dynatrace production.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 15:57:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Does-Dynatrace-Email-Notification-Problem-Body-Support/m-p/292616#M6150</guid>
      <dc:creator>txvepr</dc:creator>
      <dc:date>2026-01-07T15:57:52Z</dc:date>
    </item>
  </channel>
</rss>

