We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Attaching email excel attachment for todays date

wonka1234
10 - Fireball

Hi,

 

I have a file generated everyday within my workflow.

I want to attach this file to my email within my workflow.

 

File name is like so:  Email Data - 2022-09-12 .and each day will generated Email Data - 2022-09-13.xslx and so on.

 

How can I attach the latest file to my email? Im not sure how to dynamically choose todays file.

 

Thanks.

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

@wonka1234, does the file you want to use as an attachment get created during the same workflow? If so, you could adopt an approach like so (may need to use a Block Until Done tool depending on processing order):

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Email-Output-Error-Need-Help-Please/td...

 

If you're just bringing in an existing file then you can use a directory tool and just point it towards where these files will be saved, before filtering based on today's date being in the filename:

 

DataNath_3-1663075667602.png

DataNath_1-1663075610954.png

 

Then reference the field in the email tool attachment configuration:

 

DataNath_2-1663075642437.png

wonka1234
10 - Fireball

@DataNath  Thanks.

 

I used your directory and filter tool to get the file, not sure how to bring it into the actual email.

 

wonka1234_0-1663080550572.png

 

do you know how to do this?

DataNath
17 - Castor
17 - Castor

Hey @wonka1234, you could use an Append Fields tool to bring the output of your filter into the same stream as your layout and then reference the field needed in the email tool attachment configuration.

Labels
Top Solution Authors