<?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: Is there any way to access to the result of any previous task in Workflow using DQL instead of JS code? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Is-there-any-way-to-access-to-the-result-of-any-previous-task-in/m-p/271905#M1777</link>
    <description>&lt;P&gt;The output of task_1 will be a record whose fields you cannot refer to directly in a subsequent task. I think you need to add a step in task_2's DQL query to first create a new field containing the output from task_1 and then doing the filter logic.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample DQL&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.service
| fieldsAdd task_1_result = {{result('task_1'}}
| // insert your filter here with new reference to task_1_result.waikeat&lt;/LI-CODE&gt;&lt;P&gt;It's a bit of a hack, bit should hopefully get the job done.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 20:48:38 GMT</pubDate>
    <dc:creator>marco_irmer</dc:creator>
    <dc:date>2025-03-07T20:48:38Z</dc:date>
    <item>
      <title>Is there any way to access to the result of any previous task in Workflow using DQL instead of JS code?</title>
      <link>https://community.dynatrace.com/t5/DQL/Is-there-any-way-to-access-to-the-result-of-any-previous-task-in/m-p/271803#M1773</link>
      <description>&lt;P&gt;Just to give an example of what I encountered, I have a simple workflow below consists of task_1 and task_2.&lt;/P&gt;&lt;P&gt;You can see that in task_1 the DQL return a single record:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Task 1 Fine.png" style="width: 700px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26834iA633CE9EB4A9FBD9/image-dimensions/700x390?v=v2" width="700" height="390" role="button" title="Task 1 Fine.png" alt="Task 1 Fine.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do in task_2, is to run another DQL where it would consists of the ApplicationID return by the result/record of task_1. But somehow I couldn't &lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_down:"&gt;👇&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Task 2 Not Okay.png" style="width: 795px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26835i08822715F0C0787A/image-dimensions/795x454?v=v2" width="795" height="454" role="button" title="Task 2 Not Okay.png" alt="Task 2 Not Okay.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Not quite sure what is wrong with my syntax anyway, because if I use &lt;EM&gt;{{result('task_1')}}&lt;/EM&gt; it is fine; use &lt;EM&gt;{{result('task_1.waikeat')}}&lt;/EM&gt; it isn't fine&amp;nbsp; &lt;FONT color="#FF00FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#FF00FF"&gt;(but then, if I don't use task_1.waikeat how am I suppose to pass the ApplicationID to the DQL of task_2?)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Best Regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Wai Keat&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 05:25:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Is-there-any-way-to-access-to-the-result-of-any-previous-task-in/m-p/271803#M1773</guid>
      <dc:creator>waikeat_chan</dc:creator>
      <dc:date>2025-03-07T05:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to access to the result of any previous task in Workflow using DQL instead of JS code?</title>
      <link>https://community.dynatrace.com/t5/DQL/Is-there-any-way-to-access-to-the-result-of-any-previous-task-in/m-p/271905#M1777</link>
      <description>&lt;P&gt;The output of task_1 will be a record whose fields you cannot refer to directly in a subsequent task. I think you need to add a step in task_2's DQL query to first create a new field containing the output from task_1 and then doing the filter logic.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample DQL&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.service
| fieldsAdd task_1_result = {{result('task_1'}}
| // insert your filter here with new reference to task_1_result.waikeat&lt;/LI-CODE&gt;&lt;P&gt;It's a bit of a hack, bit should hopefully get the job done.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 20:48:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Is-there-any-way-to-access-to-the-result-of-any-previous-task-in/m-p/271905#M1777</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-03-07T20:48:38Z</dc:date>
    </item>
  </channel>
</rss>

