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

Workflow triggered by API how to give results back to the caller

henk_stobbe
DynaMight Leader
DynaMight Leader

Hello,

(I promise, last one for today,)

When a workflow is triggered by API, I assume you can use the executionID you get back, you can later retrieve the Json that is created with all results and returns?

The "client" has to extract info as needed?

KR Henk

1 REPLY 1

ChristopherHejl
Dynatrace Advisor
Dynatrace Advisor

Correct, you can get the execution details using the ID you get back via the /executions API (https://<YOUR_TENANT>.apps.dynatrace.com/platform/swagger-ui/index.html?urls.primaryName=Automation#...) or the Javascript SDK client (which simply wraps the API calls). We don't include all the data in the execution object as this could be rather large, but rather split them into seperate endpoint to get task details or their result

ChristopherHejl_0-1718196178064.png

Once we add support to define default Workflow input parameters, we will also add an option to define a result for the whole workflow, so you don't have to look up individual task results.

Featured Posts