<?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: Assistance Required for Formatting DQL Query Results in Email in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279520#M2215</link>
    <description>&lt;P&gt;Hi Chad,&lt;BR /&gt;&lt;BR /&gt;I have defined the below in the email segment:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aninda_0-1750073988568.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28528iC5D1CA5596DAFE54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aninda_0-1750073988568.png" alt="aninda_0-1750073988568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jun 2025 11:40:16 GMT</pubDate>
    <dc:creator>aninda</dc:creator>
    <dc:date>2025-06-16T11:40:16Z</dc:date>
    <item>
      <title>Assistance Required for Formatting DQL Query Results in Email</title>
      <link>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279509#M2213</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;I am currently working on sending the results of a DQL query via email. For this purpose, I have created the following workflow:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aninda_2-1750070833511.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28522iB3DA3E7B150FF27E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aninda_2-1750070833511.png" alt="aninda_2-1750070833511.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The workflow is functioning as expected, and the emails are being received. However, the data in the email is not formatted properly. Below is a snapshot of the data that is being received:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aninda_3-1750070857676.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28523i8815F30D11871E66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aninda_3-1750070857676.png" alt="aninda_3-1750070857676.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know if there is a way to present this data in a tabular format. The DQL query being used is as follows:&lt;BR /&gt;&lt;BR /&gt;fetch logs&lt;BR /&gt;| filter matchesPhrase(index, "&amp;lt;index name&amp;gt;")&lt;BR /&gt;| filter matchesPhrase(content,"- ERROR -")&lt;BR /&gt;| filter contains(source,"&amp;lt;keyword&amp;gt;")&lt;BR /&gt;| fieldsAdd container_name = splitString(source,"/")[-2]&lt;BR /&gt;| fieldsAdd interface_name_temp = splitString(source, "/")[-1]&lt;BR /&gt;| fieldsAdd interface_name = splitString(interface_name_temp,".")[0]&lt;BR /&gt;| fieldsAdd event_date = formatTimestamp(timestamp, format:"dd-MM-yyyy")&lt;BR /&gt;| fields event_date, container_name, interface_name, source, content&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 08:22:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279509#M2213</guid>
      <dc:creator>aninda</dc:creator>
      <dc:date>2025-06-17T08:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Required for Formatting DQL Query Results in Email</title>
      <link>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279518#M2214</link>
      <description>&lt;P&gt;Can you provide a screen shot of what you have defined out in the email segment of the workflow?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:38:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279518#M2214</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2025-06-16T11:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Required for Formatting DQL Query Results in Email</title>
      <link>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279520#M2215</link>
      <description>&lt;P&gt;Hi Chad,&lt;BR /&gt;&lt;BR /&gt;I have defined the below in the email segment:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aninda_0-1750073988568.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28528iC5D1CA5596DAFE54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aninda_0-1750073988568.png" alt="aninda_0-1750073988568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:40:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279520#M2215</guid>
      <dc:creator>aninda</dc:creator>
      <dc:date>2025-06-16T11:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Required for Formatting DQL Query Results in Email</title>
      <link>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279522#M2216</link>
      <description>&lt;P&gt;I would recommend using a similar format as how custom events for alerting works where you leverage Placeholders to provide dynamic variable data like " Host {Host.Name} reported high CPU with a value above {Baseline}. "&lt;/P&gt;&lt;P&gt;Granted that is not the value you will use, but it showcases the mind set of using dynamic variables you set within your grail query. Much like you did for {Record}. You can also use the right hand tab to test the result to verify the data is properly formatted without spamming emails.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:50:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279522#M2216</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2025-06-16T11:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Required for Formatting DQL Query Results in Email</title>
      <link>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279548#M2217</link>
      <description>&lt;P&gt;Hi there. One limitation you will need to keep in mind is that sending email with Workflows currently only supports plain text, as mentioned in the &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/actions/email#send-an-email-with-workflows" target="_self"&gt;documentation&lt;/A&gt;. You will need to format the body of your email accordingly so that it generates a legible message body within the constraints of plain text. That formatting would likely live inside the loop (between lines #1 and #3) and involve a mix of actual text and specific values from your results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 17:41:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/279548#M2217</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-06-16T17:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance Required for Formatting DQL Query Results in Email</title>
      <link>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/281202#M2271</link>
      <description>&lt;P&gt;Updating this thread with &lt;A href="https://docs.dynatrace.com/docs/whats-new/saas/sprint-318#email" target="_self"&gt;availability&lt;/A&gt; of email formatting as of SaaS release 1.318.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 21:25:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Assistance-Required-for-Formatting-DQL-Query-Results-in-Email/m-p/281202#M2271</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-07-09T21:25:28Z</dc:date>
    </item>
  </channel>
</rss>

