# Custom Configurations in Workflow Task

**URL:** <https://community.dynatrace.com/t/custom-configurations-in-workflow-task/51895>\
**Category:** Automations\
**Tags:** custom-actions, coding-assistance, workflows\
**Created:** [May 31, 2025, 5:31pm UTC](https://community.dynatrace.com/t/custom-configurations-in-workflow-task/51895 "2025-05-31T17:31:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbone128](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jbone128/32/29040_2.png) [@jbone128](https://community.dynatrace.com/u/jbone128)\
**Post date:** [May 31, 2025, 5:31pm UTC](https://community.dynatrace.com/t/custom-configurations-in-workflow-task/51895/1 "2025-05-31T17:31:10Z")

</div>

I have a custom configuration at the beginning of a HTTP task (sn-prod-inc-creation). The condition is:  
{{ result(“parse\_entity\_tags”).prime\_alert\_type == ‘inc’ }} and validates as ‘true’ in the “preview”.

The result is from a javascript task and the HTTP task waits for the javascript task to complete before it is run.

However, when I run the workflow I get the following error:

Unhandled failed task(s) during workflow execution:

**sn-prod-inc-creation:**  
**Error evaluating custom condition. Undefined variables: prime\_alert\_type.**

 ![custom-condition-validation.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/0/8024300b8bd537c3150ca454fe659c03f3147b5f.png)

---

<div class="post-metadata">

**Author:** ![haris](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/haris/32/38293_2.png) [@haris](https://community.dynatrace.com/u/haris)\
**Post date:** [June 2, 2025, 4:20pm UTC](https://community.dynatrace.com/t/custom-configurations-in-workflow-task/51895/2 "2025-06-02T16:20:01Z")

</div>

Hi jbone!

Can you please send a screenshot of the JavaScript task Result tab?

 ![Screenshot 2025-06-02 at 18.17.59.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/3/63642438e6f4ce51f8c29b6a88c52d28a314c661.png)

The best approach is the following syntax:

```markup
{{result("run_javascript_1")["boolean"] == True}}

```

---

<div class="post-metadata">

**Author:** ![heramb\_sawant](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@heramb\_sawant](https://community.dynatrace.com/u/heramb_sawant)\
**Post date:** [September 4, 2025, 1:34pm UTC](https://community.dynatrace.com/t/custom-configurations-in-workflow-task/51895/3 "2025-09-04T13:34:22Z")

</div>

I have workflow , having task1 as dql task that provides app\_id in its output.  
task 1 has output like this,  
[  
{  
“app\_id”: “sample\_app\_1”  
}  
]

i want to write condition for the task 2 , if previous task has value for app\_id then only run task2

How Can I write that condition?

---

<div class="post-metadata">

**Author:** ![haris](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/haris/32/38293_2.png) [@haris](https://community.dynatrace.com/u/haris)\
**Post date:** [September 9, 2025, 7:14am UTC](https://community.dynatrace.com/t/custom-configurations-in-workflow-task/51895/4 "2025-09-09T07:14:23Z")

</div>

Hi Heramb,

in the step afterwards, you can have a condition for the result such as this:

```markup
{{result("task_1")["app_id"] == "sample_app"}}

```

And you’d put it in the task 2 in the condition on the right side:

 ![Screenshot 2025-09-09 at 09.13.45.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5220b5b28e6d5fdd9802fd98df743dbf2c04b11a.png)

Let me know if you can get it working or if you have issues with it.
