# Workflow trigger if the problem persists for at least 5 minutes

**URL:** <https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634>\
**Category:** Automations\
**Tags:** workflows, automation\
**Created:** [July 16, 2024, 5:03pm UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634 "2024-07-16T17:03:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![JhonU](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Post date:** [July 16, 2024, 5:03pm UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/1 "2024-07-16T17:03:56Z")

</div>

Hello community, I have a question regarding workflows, in summary I am running a workflow with a trigger for “Davis problem trigger”, the flow analyzes the problem and categorizes it into three priorities creating a tk in servicenow for each case with its respective priority .  
In this case, my question is how to emulate a process similar to the alert profile that Dynatrace has, that is, currently we have this alert that triggers a notification only if the problem persists for at least 5 minutes, but in the case of the workflow it performs this detection at the moment in which the event is generated.  
I am trying entering delay’s but I am worried about the case in which while the flow is executing and waiting for about 5 minutes, what would happen with the problems that are triggered in this period since they would not be detected and therefore we would not be giving adequate treatment.  
On the other hand, if I generate alerts for all cases, I would be falling into a case of over-alerting.

---

<div class="post-metadata">

**Author:** ![Cameron-Leong](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@Cameron-Leong](https://community.dynatrace.com/u/Cameron-Leong)\
**Post date:** [July 18, 2024, 12:01am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/2 "2024-07-18T00:01:08Z")

</div>

Hello,

You could add filters in the problem query to filter by how long the problem has been open. In my testing, I used the filters:

```auto
matchesValue(event.status,"ACTIVE") and (timestamp-event.start)>5m

```

Which gets active problems that have been open longer than 5 minutes.

 ![CameronLeong_1-1721260815032.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/4/f4d742d876971d788c8f85a463b9e7976b9a8d41.png)

Hope this helps

---

<div class="post-metadata">

**Author:** ![TorstenHellwig](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/torstenhellwig/32/33996_2.png) [@TorstenHellwig](https://community.dynatrace.com/u/TorstenHellwig)\
**Post date:** [June 6, 2025, 3:02pm UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/3 "2025-06-06T15:02:37Z")

</div>

Hi Cameron-Leong,

this doesn’t work - I can’t save the workflow as the limited DQL there does not allow arithmetic operations.

Instead I figured out that the classic Problem notifications - that support delays for sending notifications - can work with the Teams Power Automate Workflow to get problems into MS Teams chats.

The payload needs to be crafted like this:

```markup
{ "type": "message", "attachments": [{ "contentType": "application/vnd.microsoft.card.adaptive", "content": {
  "type": "AdaptiveCard",
  "body": [
           {
            "type": "TextBlock",
            "size": "Medium",
            "weight": "Bolder",
            "text": "Dynatrace Problem"
          },
          {
          "type":"FactSet",
          "facts":[
             {
                "title":"Title",
                "value":"{ProblemTitle}"
             },
             {
                "title":"Status",
                "value":"{State}"
             },
             {
                "title":"Category",
                "value":"{ProblemSeverity}"
             },
             {
                "title":"Display ID",
                "value":"{ProblemID}"
             }
          ]
       }
  ],
  "actions": [
      {
          "type":"Action.OpenUrl",
          "title":"Open in Dynatrace",
          "url":"{ProblemURL}"
       }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.2"
} }] });

```

---

<div class="post-metadata">

**Author:** ![StrangerThing](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/strangerthing/32/12182_2.png) [@StrangerThing](https://community.dynatrace.com/u/StrangerThing)\
**Post date:** [June 6, 2025, 3:29pm UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/4 "2025-06-06T15:29:44Z")

</div>

In your event trigger, you can look for an alert profile on the event. So if you have an alert profile that has a 5m delay it won’t trigger the Workflow until the alert profile has been added to the event.

---

<div class="post-metadata">

**Author:** ![TorstenHellwig](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/torstenhellwig/32/33996_2.png) [@TorstenHellwig](https://community.dynatrace.com/u/TorstenHellwig)\
**Post date:** [June 10, 2025, 7:24am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/5 "2025-06-10T07:24:05Z")

</div>

Hi StrangerThing,

how would that workflow look like?

---

<div class="post-metadata">

**Author:** ![sdyson](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sdyson](https://community.dynatrace.com/u/sdyson)\
**Post date:** [July 11, 2025, 9:21am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/6 "2025-07-11T09:21:58Z")

</div>

```markup
matchesPhrase(labels.alerting_profile,"Alerting Profile Name")

```

---

<div class="post-metadata">

**Author:** ![kumaravel](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kumaravel/32/41704_2.png) [@kumaravel](https://community.dynatrace.com/u/kumaravel)\
**Post date:** [November 11, 2025, 4:26pm UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/7 "2025-11-11T16:26:24Z")

</div>

The documentation mentions that the labels.alerting\_profile is deprecated.

 ![kumaravel_0-1762878363696.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/b/2b3352431df568cc865ac89558d225473723b9e1.png)

Do we have some alternate approach in this case?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [November 11, 2025, 7:08pm UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/8 "2025-11-11T19:08:01Z")

</div>

You can check the problem status again with a delay in the workflow (delays can be configured) and proceed with another tasks only the the problem is active. But this cannot be accomplished with a simple workflow, only with a full one.

---

<div class="post-metadata">

**Author:** ![kumaravel](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kumaravel/32/41704_2.png) [@kumaravel](https://community.dynatrace.com/u/kumaravel)\
**Post date:** [November 14, 2025, 7:39am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/9 "2025-11-14T07:39:30Z")

</div>

Will the wait in workflow have an impact on the resources when kept active for a longer period of time?  
Also when paused during the wait time, is the workflow contributing towards the threshold count of 1000 workflows per hour?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [November 14, 2025, 8:26am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/10 "2025-11-14T08:26:10Z")

</div>

[@kumaravel](https://community.dynatrace.com/user/87037)

> [@kumaravel](https://community.dynatrace.com/user/87037)&nbsp;wrote:  
> Will the wait in workflow have an impact on the resources when kept active for a longer period of time?

On the Dynatrace cluster side, likely, but this is not something you should worry about, and it won’t affect you.

> Also when paused during the wait time, is the workflow contributing towards the threshold count of 1000 workflows per hour?

Yes, but this is not how it works. For accounting, Dynatrace does not count the time when workflow is actually triggered running, but the time the workflow is enabled. So full workflows (not the simple workflows), which are active and have never been triggered, are counted. Unfortunately for you, the delay requires it to be a full workflow.

---

<div class="post-metadata">

**Author:** ![kumaravel](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kumaravel/32/41704_2.png) [@kumaravel](https://community.dynatrace.com/u/kumaravel)\
**Post date:** [November 18, 2025, 8:45am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/11 "2025-11-18T08:45:06Z")

</div>

I understand that I will have to make use of the full workflow.  
But in the wait scenario, I am confused about the possiblity of the threshold of 1000 workflow per hour being reached.

Let me try explaining with some unrealistic numbers but just to understand how the threshold could impact -

If I have 700 problems per hour and there are 700 workflows triggered with a wait time of 30 mins. So in the next hour I would still have some workflows(assume 400) active from the previous hour and new problems triggering new workflows as well and lets say it is another 700. So in this case there are 1100 active workflows.

What would be the impact as the threshold is 1000 per hour?

Thanks

---

<div class="post-metadata">

**Author:** ![sonja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sonja/32/10349_2.png) [@sonja](https://community.dynatrace.com/u/sonja)\
**Post date:** [December 3, 2025, 8:38am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/12 "2025-12-03T08:38:08Z")

</div>

hi everyone,

we plan to add the delay to the problem trigger, please watch this product idea&nbsp;[https://community.dynatrace.com/t5/Product-ideas/Delay-on-the-Davis-Problem-trigger-in-workflow/idi-p/252329](https://community.dynatrace.com/post/252329)&nbsp;to get updated once available.

Please be careful with using alerting profiles for work-around as this feature will be phased out in the future.

Sonja

---

<div class="post-metadata">

**Author:** ![kumaravel](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kumaravel/32/41704_2.png) [@kumaravel](https://community.dynatrace.com/u/kumaravel)\
**Post date:** [December 3, 2025, 9:50am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/13 "2025-12-03T09:50:34Z")

</div>

Hello Sonja,

D you have some timeline about when is this feature planned for. For now I have to make use of a full workflow and extra logic to achieve the delay to just send a notification which ideally should be a simple workflow.

Thanks.

Kind Regards,

Kumaravel

---

<div class="post-metadata">

**Author:** ![sonja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sonja/32/10349_2.png) [@sonja](https://community.dynatrace.com/u/sonja)\
**Post date:** [December 3, 2025, 10:16am UTC](https://community.dynatrace.com/t/workflow-trigger-if-the-problem-persists-for-at-least-5-minutes/46634/14 "2025-12-03T10:16:43Z")

</div>

It’s currently scheduled for first half of 2026. I understand the pain with the work-around, we are also looking forward for users to use simple workflow for those simple use cases!
