<?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: get data from a previous dql task to a dql or javascript task in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/WORKFLOW-get-data-from-a-previous-dql-task-to-a-dql-or/m-p/248618#M1623</link>
    <description>&lt;DIV class=""&gt;Hello everyone, maybe you can guide me. I have a problem. I don't know how I can call the data that two dql code tasks return to me, whether to use it in another dql or javascript task. I've tried using regular expressions, but I can't figure out how to integrate them into code. DQL from a previous task.&lt;BR /&gt;For example, the time_validation task returns the hour parameter that I need to use for aggregations.&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JhonU_0-1718749012894.png" style="width: 626px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20620i0A4BF422F3932136/image-dimensions/626x140?v=v2" width="626" height="140" role="button" title="JhonU_0-1718749012894.png" alt="JhonU_0-1718749012894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 19 Jun 2024 08:28:49 GMT</pubDate>
    <dc:creator>JhonU</dc:creator>
    <dc:date>2024-06-19T08:28:49Z</dc:date>
    <item>
      <title>WORKFLOW: get data from a previous dql task to a dql or javascript task</title>
      <link>https://community.dynatrace.com/t5/Automations/WORKFLOW-get-data-from-a-previous-dql-task-to-a-dql-or/m-p/248618#M1623</link>
      <description>&lt;DIV class=""&gt;Hello everyone, maybe you can guide me. I have a problem. I don't know how I can call the data that two dql code tasks return to me, whether to use it in another dql or javascript task. I've tried using regular expressions, but I can't figure out how to integrate them into code. DQL from a previous task.&lt;BR /&gt;For example, the time_validation task returns the hour parameter that I need to use for aggregations.&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JhonU_0-1718749012894.png" style="width: 626px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20620i0A4BF422F3932136/image-dimensions/626x140?v=v2" width="626" height="140" role="button" title="JhonU_0-1718749012894.png" alt="JhonU_0-1718749012894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Jun 2024 08:28:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/WORKFLOW-get-data-from-a-previous-dql-task-to-a-dql-or/m-p/248618#M1623</guid>
      <dc:creator>JhonU</dc:creator>
      <dc:date>2024-06-19T08:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: WORKFLOW: get data from a previous dql task to a dql or javascript task</title>
      <link>https://community.dynatrace.com/t5/Automations/WORKFLOW-get-data-from-a-previous-dql-task-to-a-dql-or/m-p/253890#M1746</link>
      <description>&lt;P&gt;Hello Jhon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can achieve that using&amp;nbsp;{{result(&amp;lt;taskname&amp;gt;)}}.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;In the case that you want to use the returned information inside a JavaScript task, you need something like:&amp;nbsp;&lt;BR /&gt;var ex = await execution(execution_id)&lt;BR /&gt;var myResult = await ex.result('time_validation');&lt;BR /&gt;You can check the official documentation &lt;A href="https://docs.dynatrace.com/docs/platform-modules/automations/workflows/default-workflow-actions/run-javascript-workflow-action#task-result" target="_self"&gt;link&lt;/A&gt; for Javascript&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Hope you a good monitoring!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:54:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/WORKFLOW-get-data-from-a-previous-dql-task-to-a-dql-or/m-p/253890#M1746</guid>
      <dc:creator>jaume_reverte</dc:creator>
      <dc:date>2024-08-22T06:54:11Z</dc:date>
    </item>
  </channel>
</rss>

