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

Send results of specific workflow task to email

kimberly_mirkes
Participant

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

I love the "send email" action that I can now incorporate into a workflow.  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.  Not everyone on the team will have access to the workflow, but all members will want to see the results.

3 REPLIES 3

sinisa_zubic
Dynatrace Champion
Dynatrace Champion

Hi @kimberly_mirkes 

 

you have to access the result of a previous task via jinja expressions.

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 https://swapi.tech/ api.

sinisa_zubic_0-1711051923248.png

Best,
Sini

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

Kimberly

kimberly_mirkes
Participant

Thanks again Sini,

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

Kimberly

Featured Posts