# Use DQL query within Problem trigger to Teams Workflow

**URL:** <https://community.dynatrace.com/t/use-dql-query-within-problem-trigger-to-teams-workflow/55926>\
**Category:** DQL\
**Tags:** dql, workflows\
**Created:** [May 18, 2026, 4:22am UTC](https://community.dynatrace.com/t/use-dql-query-within-problem-trigger-to-teams-workflow/55926 "2026-05-18T04:22:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hillman](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@Hillman](https://community.dynatrace.com/u/Hillman)\
**Post date:** [May 18, 2026, 4:22am UTC](https://community.dynatrace.com/t/use-dql-query-within-problem-trigger-to-teams-workflow/55926/1 "2026-05-18T04:22:30Z")

</div>

As the mobile app will soon be end-of-support, I am now testing the workflow that send notification to Teams whenever there are problems being triggered.

However, I do not want to send every problem alerts to Teams. Only those which have Alert Profiles other than Default one assigned will be sent to Teams.

I have constructed a DQL query to do the filter. However, the workflow UI does not allow me to add custom DQL query. It only allows partial DQL filter input.

 ![Hillman_0-1779078129692.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/2/72af87b37975d004f478a63eb25bc94ce2cd32d2.png)

Is there any way I can use the DQL to do the filtering in Problem triggers?

---

<div class="post-metadata">

**Author:** ![gbaudart](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Post date:** [May 18, 2026, 11:10am UTC](https://community.dynatrace.com/t/use-dql-query-within-problem-trigger-to-teams-workflow/55926/2 "2026-05-18T11:10:04Z")

</div>

Hi,

You can use the “Additional Custom filter” in the Problem Trigger like this :

 ![gbaudart_0-1779102585690.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/065e97a0e95be8486bee0209937202a00facdb3d.png)

Let me know if it’s work 😉

---

<div class="post-metadata">

**Author:** ![Hillman](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@Hillman](https://community.dynatrace.com/u/Hillman)\
**Post date:** [May 19, 2026, 3:10am UTC](https://community.dynatrace.com/t/use-dql-query-within-problem-trigger-to-teams-workflow/55926/3 "2026-05-19T03:10:16Z")

</div>

[@gbaudart](https://community.dynatrace.com/user/64996)&nbsp;However, the custom filter does not fully cover my use case.

I want to filter out the problems which does not have alert profile assigned and those assigned with “Default” profile only. This involves Array to string conversion (to change the alert profiles array to string), string replacement (to remove the Default profile) and can only be done by full DQL.
