<?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 Workflow - Bring events into an email in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293148#M3039</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to bring the below data into an email via workflow.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fetch events, from: now()-5m, to: now()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| filter event.kind == "DAVIS_PROBLEM"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| filter event.status_transition == "CREATED"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| fields timestamp, display_id, event.category, event.start, event.end, event.name, event.status, event.status_transition, root_cause_entity_id, root_cause_entity_name&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| sort event.start desc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please help, how?&lt;/P&gt;&lt;P&gt;Currently, I'm just getting an email with a link to workflow.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MH&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jan 2026 09:34:06 GMT</pubDate>
    <dc:creator>munawarhossain3</dc:creator>
    <dc:date>2026-01-15T09:34:06Z</dc:date>
    <item>
      <title>Workflow - Bring events into an email</title>
      <link>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293148#M3039</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to bring the below data into an email via workflow.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fetch events, from: now()-5m, to: now()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| filter event.kind == "DAVIS_PROBLEM"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| filter event.status_transition == "CREATED"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| fields timestamp, display_id, event.category, event.start, event.end, event.name, event.status, event.status_transition, root_cause_entity_id, root_cause_entity_name&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| sort event.start desc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please help, how?&lt;/P&gt;&lt;P&gt;Currently, I'm just getting an email with a link to workflow.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MH&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 09:34:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293148#M3039</guid>
      <dc:creator>munawarhossain3</dc:creator>
      <dc:date>2026-01-15T09:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow - Bring events into an email</title>
      <link>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293184#M3044</link>
      <description>&lt;P&gt;Assuming you have at least 3 tasks, the trigger, the DQL, named as "execute_dql_query_1" and the email.&lt;/P&gt;&lt;P&gt;In the email task you should include the previous (DQL) task result in the email Message field, like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ result("execute_dql_query_1")["records"] | to_json}}&lt;/LI-CODE&gt;&lt;P&gt;This way, you will get the DQL query result as json format in your email.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/actions/email#sending-json-payloads-as-message-content" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/actions/email#sending-json-payloads-as-message-content&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try and let us know.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 17:51:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293184#M3044</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2026-01-15T17:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow - Bring events into an email</title>
      <link>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293206#M3046</link>
      <description>&lt;P&gt;Worked :). But throttled with limit so I've reduced the time frame.&lt;/P&gt;&lt;P&gt;Also how can I propagate Dynatrace problem link to each problems?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 11:09:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293206#M3046</guid>
      <dc:creator>munawarhossain3</dc:creator>
      <dc:date>2026-01-16T11:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow - Bring events into an email</title>
      <link>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293214#M3049</link>
      <description>&lt;P&gt;Using the concat function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/platform/grail/dynatrace-query-language/functions/string-functions#concat" target="_blank"&gt;https://docs.dynatrace.com/docs/discover-dynatrace/platform/grail/dynatrace-query-language/functions/string-functions#concat&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch events, from: now()-5m, to: now()
| filter event.kind == "DAVIS_PROBLEM"
| filter event.status_transition == "CREATED"
| fieldsAdd tenant.url = "https://&amp;lt;YOURTENANTIDHERE&amp;gt;.apps.dynatrace.com/ui/apps/dynatrace.davis.problems/problem/"
| fieldsAdd problem.url = concat(tenant.url, event.id)
| fields timestamp, display_id, event.category, event.start, event.end, event.name, event.status, event.status_transition, root_cause_entity_id, root_cause_entity_name, problem.url
| sort event.start desc&lt;/LI-CODE&gt;&lt;P&gt;Try and let us know.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 11:54:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293214#M3049</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2026-01-16T11:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow - Bring events into an email</title>
      <link>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293332#M3059</link>
      <description>&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used this -&lt;/P&gt;&lt;P&gt;fetch events,from:-1m, to: now()&lt;BR /&gt;| filter event.kind == "DAVIS_PROBLEM"&lt;BR /&gt;| sort timestamp desc&lt;BR /&gt;| filter event.status != "CLOSED"&lt;BR /&gt;| fieldsAdd problem_url=concat("&lt;A href="https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.davis.problems/problem/" target="_blank"&gt;https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.davis.problems/problem/&lt;/A&gt;", event.id) and getting the expected JSON. Now I need to convert the JSON to text. Could you please help how?&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 14:13:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Workflow-Bring-events-into-an-email/m-p/293332#M3059</guid>
      <dc:creator>munawarhossain3</dc:creator>
      <dc:date>2026-01-20T14:13:13Z</dc:date>
    </item>
  </channel>
</rss>

