# Send results of specific workflow task to email

**URL:** <https://community.dynatrace.com/t/send-results-of-specific-workflow-task-to-email/44795>\
**Category:** Developer Q&A Forum\
**Tags:** workflows\
**Created:** [March 21, 2024, 6:59pm UTC](https://community.dynatrace.com/t/send-results-of-specific-workflow-task-to-email/44795 "2024-03-21T18:59:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimberly\_mirkes](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kimberly\_mirkes](https://community.dynatrace.com/u/kimberly_mirkes)\
**Post date:** [March 21, 2024, 6:59pm UTC](https://community.dynatrace.com/t/send-results-of-specific-workflow-task-to-email/44795/1 "2024-03-21T18:59:13Z")

</div>

I posted this in the wrong forum.&nbsp; Meant to post to Developer Forum.

I love the “send email” action that I can now incorporate into a workflow.&nbsp; However, I’m wondering if there’s a way to send results from a specific task, through email.

Use case:

Run HTTP synthetic monitor from workflow Task 1

Gather specific results everyone on the team wants to see Task 2

Send results of Task 2 through the send email action

Open email - see results from Task 2 in message: url, responseCode, responseBody, etc

Currently when I get the email, it just sends a link to the workflow.&nbsp; Not everyone on the team will have access to the workflow, but all members will want to see the results.

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [March 21, 2024, 8:15pm UTC](https://community.dynatrace.com/t/send-results-of-specific-workflow-task-to-email/44795/2 "2024-03-21T20:15:45Z")

</div>

Hi&nbsp;[@kimberly\_mirkes](https://community.dynatrace.com/user/15545)

you have to access the result of a previous task via [jinja expressions](https://docs.dynatrace.com/docs/shortlink/automation-workflow-expression-reference#result).

Here you have an example of how I am accessing my demo workflow results of a previous action. My preceding task was actually just a http request to the&nbsp;[https://swapi.tech/](https://swapi.tech/)&nbsp;api.

 ![sinisa_zubic_0-1711051923248.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/2/e2fe1897f9663eff715fb8419ee31ae2d9160e84.png)

Best,  
Sini

---

<div class="post-metadata">

**Author:** ![kimberly\_mirkes](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kimberly\_mirkes](https://community.dynatrace.com/u/kimberly_mirkes)\
**Post date:** [March 21, 2024, 8:34pm UTC](https://community.dynatrace.com/t/send-results-of-specific-workflow-task-to-email/44795/3 "2024-03-21T20:34:50Z")

</div>

Oh, excellent; thank you Sini!&nbsp; I will give that a try.

Kimberly

---

<div class="post-metadata">

**Author:** ![kimberly\_mirkes](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kimberly\_mirkes](https://community.dynatrace.com/u/kimberly_mirkes)\
**Post date:** [March 21, 2024, 8:53pm UTC](https://community.dynatrace.com/t/send-results-of-specific-workflow-task-to-email/44795/4 "2024-03-21T20:53:11Z")

</div>

Thanks again Sini,

This works.&nbsp; I just need to truncate the response body I’m trying to send, as it exceeds the 5,000 char limit.

Kimberly
