Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Include Output Log in Email Tool

zqlcancer
8 - Asteroid

The 'Send Email' function which can be triggered in Event includes lots of useful information like number of errors and log details. Is it possible we can include such information in an email tool?

1 REPLY 1
rzdodson
12 - Quasar

@zqlcancer there definitely is, but it isn't pretty. :)

 

First, run your workflow to get the initial output log. What helps here is creating a dummy output file coming out of the first anchor of a Block Until Done tool. This will ensure that an output (and the Output log) is generated before we start working with the email section of the workflow. From here, you are going to want to right click on any message in your Output log. It is going to give you an option to "Save As". This should be your entire output log. Save that file as a text file.

Solution 2.png

 

Second, create the remaining elements of your workflow. Once you get to your email tool, change the "Attachments" settings to retrieve that text file you just saved. This will add the Output log as an attachment to the email you are constructing in your workflow. If you are wanting the Output log to appear in the email body itself, I would recommend putting it in a macro so you can retrieve the file's contents. At that point, it'll become a string field that you can then use to inject in to the body of your email. 

Solution.png

Labels
Top Solution Authors