cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WORKFLOW: get data from a previous dql task to a dql or javascript task

JhonU
Contributor
Hello everyone, maybe you can guide me. I have a problem. I don't know how I can call the data that two dql code tasks return to me, whether to use it in another dql or javascript task. I've tried using regular expressions, but I can't figure out how to integrate them into code. DQL from a previous task.
For example, the time_validation task returns the hour parameter that I need to use for aggregations.

JhonU_0-1718749012894.png

 

1 REPLY 1

jaume_reverte
Dynatrace Advisor
Dynatrace Advisor

Hello Jhon, 

You can achieve that using {{result(<taskname>)}}. 

In the case that you want to use the returned information inside a JavaScript task, you need something like: 
var ex = await execution(execution_id)
var myResult = await ex.result('time_validation');
You can check the official documentation link for Javascript 

Hope you a good monitoring! 

Hope you a good monitoring!
Jaume Reverte

Featured Posts