<?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: Nice to know? Workflow task returns true or false in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278078#M1429</link>
    <description>&lt;P&gt;Hi Haris,&lt;/P&gt;&lt;P&gt;Thanks for the comment!&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 11:28:00 GMT</pubDate>
    <dc:creator>henk_stobbe</dc:creator>
    <dc:date>2025-05-27T11:28:00Z</dc:date>
    <item>
      <title>Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278062#M1422</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a workflow task returns Boolean true (or false),&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"result": true&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;to run the next task if to you need to use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="henk_stobbe_0-1748335407136.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28200i7A5FCFFB18AF3CDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="henk_stobbe_0-1748335407136.png" alt="henk_stobbe_0-1748335407136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Who can confirm (-;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 08:47:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278062#M1422</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2025-05-27T08:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278074#M1426</link>
      <description>&lt;P&gt;Hi Henk,&lt;/P&gt;
&lt;P&gt;That would work, but we always recommend square brackets:&amp;nbsp;{{result("run_javascript_1")["result"] == false}}&lt;/P&gt;
&lt;P&gt;Best, Haris&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;/P&gt;
&lt;P&gt;It should be `True` or `False` (in capital letters), as these are valid names for Python booleans.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One could also use a "short form", that is:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;{{ result("run_javascript_1")["result"] }}&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 07:20:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278074#M1426</guid>
      <dc:creator>haris</dc:creator>
      <dc:date>2025-05-28T07:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278078#M1429</link>
      <description>&lt;P&gt;Hi Haris,&lt;/P&gt;&lt;P&gt;Thanks for the comment!&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 11:28:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278078#M1429</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2025-05-27T11:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278080#M1430</link>
      <description>&lt;P&gt;It should be `True` or `False` (in capital letters), as these are valid names for Python booleans.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for nitpicking &lt;span class="lia-unicode-emoji" title=":see_no_evil_monkey:"&gt;🙈&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One could also use a "short form", that is:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{{ result("run_javascript_1")["result"] }}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 12:29:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278080#M1430</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2025-05-27T12:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278081#M1431</link>
      <description>&lt;P&gt;Hello Michal,&lt;/P&gt;&lt;P&gt;In this case, the combination of TS and Python needs a little nitpicking (-;&lt;/P&gt;&lt;P&gt;So&amp;nbsp; above will work if the result of the task returns True or False,&amp;nbsp; but JS uses true and false. So you need to convert the return first? Or is this done automatic....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Henk&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 12:56:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278081#M1431</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2025-05-27T12:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278084#M1432</link>
      <description>&lt;P&gt;Hi Henk,&lt;/P&gt;&lt;P&gt;If a boolean value needs to be converted, we do that out of the box, so you don't need to worry about that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michal_zawislak_0-1748351089269.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28204iC1A21D274C818CC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michal_zawislak_0-1748351089269.png" alt="michal_zawislak_0-1748351089269.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies things a bit &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 13:05:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/278084#M1432</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2025-05-27T13:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/285484#M1524</link>
      <description>&lt;P&gt;I see this thread is the most suitable thread for my question and I appreciate if some help in this frustrating workflow.&lt;/P&gt;&lt;P&gt;I have a workflow which I designed to wrap another Dynatrace API to give to another team. The workflow works fine but I am struggling to return only the final results json of the last task in the workflow and I use the following (see also the screen shot)&lt;/P&gt;&lt;P&gt;{{ result("create_token") }}&lt;/P&gt;&lt;P&gt;I add the above in the in the last box of the workflow option (see screenshot)&lt;/P&gt;&lt;P&gt;When I run the workflow from outside using the url of the workflow using the platform API from outside I never get the results of the last task in my workflow instead I only get the output of the workflow content like this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what I need to do extra please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Raw Response Content (bytes): b'{"id":"e2b4522c-8993-4788-88eb-a40bbc697d8f","workflow":"58803a59-3707-4cf0-a080-3d48c9c80194","state":"RUNNING","stateInfo":null,"input":{"name":"cloud_team_remove","days":"30"},"providedInput":{"name":"cloud_team_remove","days":"30"},"params":{},"startedAt":"2025-09-05T14:14:51.535710Z","endedAt":null,"runtime":0,"trigger":"myname@x.com","schedule":null,"eventTrigger":null,"user":"d5ab893c-edde-4351-b63c-7719f537bda9","actor":"d5ab893c-edde-4351-b63c-7719f537bda9","title":"WORKFLOW_NAME","result":{},"triggerType":"Manual","workflowVersion":27,"workflowType":"STANDARD","triggerTypeDetail":{"userId":"d5ab893c-edde-4351-b63c-7719f537bda9"},"parentExecution":null,"parentTaskName":null,"rootExecution":null,"rootWorkflow":"58803a59-3707-4cf0-a080-3d48c9c80194","isDraft":false}'&lt;/P&gt;&lt;P&gt;I was expecting to get only the results of the output of my last task exactly in your case where you want true or false or True or False but my case I need the JSON results of the last task as I mentioned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your support.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 14:31:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/285484#M1524</guid>
      <dc:creator>MarwanC</dc:creator>
      <dc:date>2025-09-05T14:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/285485#M1525</link>
      <description>&lt;P&gt;I have tried even to use the workflow API to fetch the results in another API call but it returns empty, I used this&lt;/P&gt;&lt;PRE&gt;Extracted Execution ID: &lt;SPAN&gt;e2b4522c-8993-4788-88eb-a40bbc697d8f&lt;/SPAN&gt;

Fetching final result from: &lt;A href="https://{environmentid}.apps.dynatrace.com/platform/automation/v1/workflows/executions/63937a06-8e39-47cd-b6d0-876e86d78dc5" target="_blank" rel="noopener"&gt;https://TENANT_ID.dynatrace.com/platform/automation/v1/workflows/executions/&lt;SPAN&gt;e2b4522c-8993-4788-88eb-a40bbc697d8f&lt;/SPAN&gt;&lt;/A&gt;

=== Final Workflow Execution Result ===
{}&lt;BR /&gt;&lt;BR /&gt;Any more ideas is welcome&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 15:14:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/285485#M1525</guid>
      <dc:creator>MarwanC</dc:creator>
      <dc:date>2025-09-05T15:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/285508#M1526</link>
      <description>&lt;P&gt;Good Morning Marwan,&lt;/P&gt;&lt;P&gt;I hope I understand the question correctly, otherwise I will remove this answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply put the workflow runs async.&amp;nbsp; The reply you get says:&amp;nbsp;&lt;SPAN&gt;"state":"RUNNING",&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So you have to wait until the WF is done. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So best is:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Loop(while running, wait)&amp;nbsp; if done -&amp;gt; get the result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KR Henk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 08:50:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/285508#M1526</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2025-09-06T08:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/285542#M1527</link>
      <description>&lt;P&gt;Thanks Hank for your reply, there is not a way to wait, as it is a single invokation however, you may fetch the results like you said before in another thread, I am trying this API now&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/Automations/How-to-retrieve-workflow-return-value-s-by-API/m-p/248615" target="_blank"&gt;https://community.dynatrace.com/t5/Automations/How-to-retrieve-workflow-return-value-s-by-API/m-p/248615&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 10:59:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/285542#M1527</guid>
      <dc:creator>MarwanC</dc:creator>
      <dc:date>2025-09-08T10:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know? Workflow task returns true or false</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/287610#M1559</link>
      <description>&lt;P&gt;You may also look at this thread:&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Automations/How-to-retrieve-workflow-return-value-s-by-API/m-p/248615" target="_blank"&gt;https://community.dynatrace.com/t5/Automations/How-to-retrieve-workflow-return-value-s-by-API/m-p/248615&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 10:10:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Nice-to-know-Workflow-task-returns-true-or-false/m-p/287610#M1559</guid>
      <dc:creator>MarwanC</dc:creator>
      <dc:date>2025-10-10T10:10:01Z</dc:date>
    </item>
  </channel>
</rss>

