<?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: Setting a condition that skip a step if the trigger returns 0 in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301677#M2669</link>
    <description>&lt;P&gt;I'm a bit confused. The event trigger should always produce a result; otherwise, the workflow wouldn't be triggered in the first place.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2026 07:18:14 GMT</pubDate>
    <dc:creator>dylan_taelemans</dc:creator>
    <dc:date>2026-07-08T07:18:14Z</dc:date>
    <item>
      <title>Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301675#M2666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like creating a workflow to be triggered when the events that have been marked as ‘closed’ and have a specific tag.&amp;nbsp;And in the first step following the trigger, set a condition so that the step is skipped if the trigger’s result is 0&lt;/P&gt;&lt;P&gt;For that, I've defined this event trigger:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_0-1783487040794.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33628i103227F168B300B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_0-1783487040794.png" alt="erh_inetum_0-1783487040794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And in the first step after event trigger, this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_1-1783487135397.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33629i8DB767271D07BE96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_1-1783487135397.png" alt="erh_inetum_1-1783487135397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know this condition "{{ result("Event trigger") | length &amp;gt; 0}}" is not correct because&amp;nbsp;the previous tasks is a trigger.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any know what would be the right condition?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 05:09:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301675#M2666</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2026-07-08T05:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301677#M2669</link>
      <description>&lt;P&gt;I'm a bit confused. The event trigger should always produce a result; otherwise, the workflow wouldn't be triggered in the first place.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 07:18:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301677#M2669</guid>
      <dc:creator>dylan_taelemans</dc:creator>
      <dc:date>2026-07-08T07:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301679#M2670</link>
      <description>&lt;P&gt;Hi Dylan,&lt;/P&gt;&lt;P&gt;As you can see, now, at the time I execute the querry, it returns 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_0-1783495087876.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33630i69C3F4656CEFE844/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_0-1783495087876.png" alt="erh_inetum_0-1783495087876.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like the event triggers when the result of the condition is &amp;gt; 0 or in the next steps, the steps was skipped if the result of the condition is 0.&lt;/P&gt;&lt;P&gt;Is it possible to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 07:21:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301679#M2670</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2026-07-08T07:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301681#M2671</link>
      <description>&lt;P&gt;Okay, I think there's a misunderstanding here.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query past events&lt;/STRONG&gt; does not run or trigger your workflow. It's only used to verify that your event filter is working as expected.&lt;/P&gt;&lt;P&gt;In your case, there wasn't a single event in the past 7 days that matched your filter conditions.&lt;BR /&gt;So, let's say you created this workflow a week ago. It would never have started because no event matching your filter conditions would have occurred to trigger it. No need for&amp;nbsp;&lt;SPAN&gt;{{ result("Event trigger") | length &amp;gt; 0}} as you would never even start your workflow.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 07:27:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301681#M2671</guid>
      <dc:creator>dylan_taelemans</dc:creator>
      <dc:date>2026-07-08T07:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301683#M2672</link>
      <description>&lt;P&gt;Hi Dylan,&lt;/P&gt;&lt;P&gt;You are right. Putting the condition for which I want the workflow triggers it's enough. Now it's working as it's expected.&lt;/P&gt;&lt;P&gt;Thanks a lots for your help and also for your answer in this other &lt;A href="https://community.dynatrace.com/t5/Alerting/Event-Trigger-on-Problem-Closure/td-p/290443" target="_self"&gt;post&lt;/A&gt; because it's helped me to complete the condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 08:15:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301683#M2672</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2026-07-08T08:15:28Z</dc:date>
    </item>
  </channel>
</rss>

