Calling all Racers for the Alteryx Grand Prix! It's time to rev your engines and race to the stage at Inspire! Sign up here.

Alteryx Designer Discussions

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

Receiving an email as an input

8 - Asteroid

Hi guys,


I am receiving some data form a third party every month as an attachement in a email.  

I usually download every file save it and then use it inside a alteryx workflow.


I was wondering if there could be a way to reveice those mails directly as an input in alteryx so i don't need to first download and save the attachement.


Also i know this is a Alteryx forum, but if it is not possible to solve this problem through alteryx would you know what i could use to solve this problem?


Thank you guys in advance?

11 - Bolide

Hi @max_hfr, I have been able to do something similar but I wrote a Microsoft Powershell script that I could execute within a command line tool in an Alteryx workflow. The Powershell script would save the attachment from an email, save it to local directory, and then Alteryx could reference that file as an input. I'm not sure how familiar you are with Powershell, but here is my script.


Add-Type -Assembly "Microsoft.Office.Interop.Outlook"
$Outlook = New-Object -ComObject Outlook.Application
$Namespace = $Outlook.GetNameSpace("MAPI")
$inbox = $NameSpace.GetDefaultFolder(6)
$targetfolder=$inbox.folders |where-object {$ -eq "Reports"}

$targetfolder.Items | foreach{
$_.attachments | foreach{




11 - Bolide

Also, you really don't even need the input tool. You can bring the file directly in using the read results within the configuration of the command line tool. It would look like this.



18 - Pollux
18 - Pollux

Hi @max_hfr 


There's actually an input tool for connecting to Outlook through EWS.  You can find the main announcement here