Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Server Discussions

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

Sending email with attachments generated by Output files

NicolasDestombes
7 - Meteor

Hello,

 

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?

 

Thanks

5 REPLIES 5
DavidP
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"

hroderick-thr
11 - Bolide

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

NicolasDestombes
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.

NicolasDestombes
7 - Meteor

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

jbrand
5 - Atom

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