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

**URL:** <https://community.dynatrace.com/t/workflow-triggered-by-api-how-to-give-results-back-to-the-caller/46080>\
**Category:** Automations\
**Tags:** workflows, automation\
**Created:** [June 12, 2024, 12:33pm UTC](https://community.dynatrace.com/t/workflow-triggered-by-api-how-to-give-results-back-to-the-caller/46080 "2024-06-12T12:33:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 12, 2024, 12:33pm UTC](https://community.dynatrace.com/t/workflow-triggered-by-api-how-to-give-results-back-to-the-caller/46080/1 "2024-06-12T12:33:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ChristopherHejl](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christopherhejl/32/20735_2.png) [@ChristopherHejl](https://community.dynatrace.com/u/ChristopherHejl)\
**Post date:** [June 12, 2024, 12:43pm UTC](https://community.dynatrace.com/t/workflow-triggered-by-api-how-to-give-results-back-to-the-caller/46080/2 "2024-06-12T12:43:53Z")

</div>

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#/executions) 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](https://global.discourse-cdn.com/dynatrace/original/3X/b/a/ba2e78ec2be14511d95de6d4c9ba4241054cc282.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.
