31 May 2025 06:31 PM
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.
Solved! Go to Solution.
02 Jun 2025 05:20 PM
Hi jbone!
Can you please send a screenshot of the JavaScript task Result tab?
The best approach is the following syntax:
{{result("run_javascript_1")["boolean"] == True}}
04 Sep 2025 02:34 PM
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?
09 Sep 2025 08:14 AM
Hi Heramb,
in the step afterwards, you can have a condition for the result such as this:
{{result("task_1")["app_id"] == "sample_app"}}
And you'd put it in the task 2 in the condition on the right side:
Let me know if you can get it working or if you have issues with it.