# Display custom condition results as string in workflows

**URL:** <https://community.dynatrace.com/t/display-custom-condition-results-as-string-in-workflows/53561>\
**Category:** Automations\
**Tags:** dql, workflows, automations\
**Created:** [September 29, 2025, 11:15pm UTC](https://community.dynatrace.com/t/display-custom-condition-results-as-string-in-workflows/53561 "2025-09-29T23:15:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![loopy](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@loopy](https://community.dynatrace.com/u/loopy)\
**Post date:** [September 29, 2025, 11:15pm UTC](https://community.dynatrace.com/t/display-custom-condition-results-as-string-in-workflows/53561/1 "2025-09-29T23:15:25Z")

</div>

In workflows I need to build an alert to execute this script which does a countIf of two parameters and then trigger an alert if both counts are higher than a hardcoded threshold. The results are showing as below as type long, but the actual value appears to be a string.

 ![loopy_0-1759187392972.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/c/bc77ddfe59e8bdf9919bc3cdc6ec137aa01c8256.png)

As an example of just trying to get a second trigger to run I have a custom condition of:

{{result(“execute\_query”)[“records”][0][“count\_process”]\>0}}

Which bring back an error saying the given results are of type string while I’m trying to do an int operator.

 ![loopy_1-1759187631879.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/ce44e796c75ef086f9b5e3c5147e61db86e81b5c.png)

Any suggestions of what I am doing wrong here, in the custom conditions, the DQL, or another setting to get the output to be properly as a long/int?

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 15, 2025, 10:41am UTC](https://community.dynatrace.com/t/display-custom-condition-results-as-string-in-workflows/53561/2 "2025-12-15T10:41:47Z")

</div>

Hey&nbsp;[@loopy](https://community.dynatrace.com/user/94466)&nbsp;,

I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you! 😊  
Please let me know what works best for you.

---

<div class="post-metadata">

**Author:** ![loopy](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@loopy](https://community.dynatrace.com/u/loopy)\
**Post date:** [December 16, 2025, 2:09am UTC](https://community.dynatrace.com/t/display-custom-condition-results-as-string-in-workflows/53561/3 "2025-12-16T02:09:00Z")

</div>

Hi&nbsp;[@IzabelaRokita](https://community.dynatrace.com/user/67399)&nbsp;,

No solution has been found yet so I had to impliment a work around. If you are able to look into this, much appreciated.
