Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Sending email with attachments generated by Output files

7 - Meteor



I have a chained App in Gallery, and it doesn't show the output files on success but run directly the next app.

So I'd like to send an email with the output files generated to the user.


When I create my workflow, add the email tool, Add attchment, it is only files from my laptop while I want the attachment to refer to the generated output files.


Could you help me?



17 - Castor
17 - Castor

You should be able to write the file to the temp filepath and then use that path for the email attachment. You can either use an email tool or set up and "after run without errors" email event.


For instance, write the file with filepath:   %temp%\filename.yxdb  (or whatever file type you want to use.


You can then use the following path to attach the file:     [Engine.TempFilePath]+"filename.yxdb"

11 - Bolide

also, put a block until done tool upstream from the email tool

7 - Meteor

Actually, I have found the solution: you just need to put the name of the file instead of a path and when publishing in Gallery, the App will use the file generated in the App.


Thanks for your inputs.

7 - Meteor

the Block Until Done is not very helping as it is not fully blocking downstream when you use file/Connector... with

5 - Atom

Hi Nicolas, are you using the temp file path in the file output? can you show an example?