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

How to show workflow last execution status in dashboard?

susmita_ally
Contributor

How to show workflow last execution status in dashboard?

1 REPLY 1

PacoPorro
Dynatrace Champion
Dynatrace Champion

I'm afraid the workflow status is only available through the workflow app.
You can try to play with code and variables.
As variable you can define a workflowId variable in the dashboard:

fetch dt.system.events
| filter event.type == "Automation Workflow" 
| fields workflow.id

And as intial JS code you can start with something like this

export default async function () {
  // Using $workflowId as a variable
  
  const requestWorkflow = `/platform/automation/v1/executions?workflow=${$workflowId}`
  const executions = await fetch(requestWorkflow);
  const executions_results = await executions.json();

  console.log(executions);
  console.log(executions_results)
  
  const res = executions_results.results;

  return res;
  
}

 

 

Featured Posts