<?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: WorkFlow - stop if no data was retrivied from the API in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264560#M1928</link>
    <description>&lt;P&gt;You can use &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/building#task-conditions" target="_self"&gt;Task Conditions&lt;/A&gt; to enable/disable a Task based on a previous task. In this particular case, you can use the &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/reference#filters" target="_self"&gt;length filter&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;For example, on the task &lt;STRONG&gt;post_log_into_dynatrace&lt;/STRONG&gt;, switch to Conditions, and try out the following expression in the "And custom condition was met" field:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ result("d365_masterdata_intmat").json.value | length &amp;gt; 0 }}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christian_kreuz_0-1733482885708.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25064i1D5EEADE35E59D60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christian_kreuz_0-1733482885708.png" alt="christian_kreuz_0-1733482885708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This should lead to this specific task not being executed when the result is an empty list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christian_kreuz_1-1733482920111.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25065iC5EFD052D572506C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christian_kreuz_1-1733482920111.png" alt="christian_kreuz_1-1733482920111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2024 11:02:10 GMT</pubDate>
    <dc:creator>christian_kreuz</dc:creator>
    <dc:date>2024-12-06T11:02:10Z</dc:date>
    <item>
      <title>WorkFlow - stop if no data was retrivied from the API</title>
      <link>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/263926#M1904</link>
      <description>&lt;P&gt;Good morning community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using workflow to retrieve data from D365 and then push it to Dynatrace.&lt;BR /&gt;Sometimes the call to the api doesn't provide any data and push_log_to_dynatrace step will fail. (see image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="y_buccellato_0-1732782164819.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24924iE1E671AD1B2FFCCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="y_buccellato_0-1732782164819.png" alt="y_buccellato_0-1732782164819.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was wondering: how can I put a condition that stop the flow if no data was retrieved from the API?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 08:24:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/263926#M1904</guid>
      <dc:creator>y_buccellato</dc:creator>
      <dc:date>2024-11-28T08:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: WorkFlow - stop if no data was retrivied from the API</title>
      <link>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264334#M1918</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4804"&gt;@y_buccellato&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PFA resource for further details:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/workflows-building#task-options" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/workflows-building#task-options&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hoping it helps.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 07:57:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264334#M1918</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-12-04T07:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: WorkFlow - stop if no data was retrivied from the API</title>
      <link>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264346#M1920</link>
      <description>&lt;P&gt;Unfortunately no, but I appreciate your help.&lt;BR /&gt;&lt;BR /&gt;Condition should be "if you have no value in the array then gracefully stop the execution" and I don't find a practical reference to do that.&lt;BR /&gt;&lt;BR /&gt;I revert back to using Power Automate which has an extensive documentation and use case already covred.&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 09:12:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264346#M1920</guid>
      <dc:creator>y_buccellato</dc:creator>
      <dc:date>2024-12-04T09:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: WorkFlow - stop if no data was retrivied from the API</title>
      <link>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264560#M1928</link>
      <description>&lt;P&gt;You can use &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/building#task-conditions" target="_self"&gt;Task Conditions&lt;/A&gt; to enable/disable a Task based on a previous task. In this particular case, you can use the &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/reference#filters" target="_self"&gt;length filter&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;For example, on the task &lt;STRONG&gt;post_log_into_dynatrace&lt;/STRONG&gt;, switch to Conditions, and try out the following expression in the "And custom condition was met" field:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ result("d365_masterdata_intmat").json.value | length &amp;gt; 0 }}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christian_kreuz_0-1733482885708.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25064i1D5EEADE35E59D60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christian_kreuz_0-1733482885708.png" alt="christian_kreuz_0-1733482885708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This should lead to this specific task not being executed when the result is an empty list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christian_kreuz_1-1733482920111.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25065iC5EFD052D572506C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christian_kreuz_1-1733482920111.png" alt="christian_kreuz_1-1733482920111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 11:02:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264560#M1928</guid>
      <dc:creator>christian_kreuz</dc:creator>
      <dc:date>2024-12-06T11:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: WorkFlow - stop if no data was retrivied from the API</title>
      <link>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264561#M1929</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/23530"&gt;@christian_kreuz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciated attempt.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 11:05:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/WorkFlow-stop-if-no-data-was-retrivied-from-the-API/m-p/264561#M1929</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-12-06T11:05:07Z</dc:date>
    </item>
  </channel>
</rss>

