Extracting specific mail

I want to extract a specific mail searching according to the subject.
How should I proceed.
I want my robot to open the mail and then search for a specific subject in the inbox and download the file.
Please help walk through

specific mail??
like particular person email??

you can do this
Get mail Activity - and get output like this outEmails
For each loop - inside for each loop use if conditon like this outEmails.Subject.Contains(“yourSearchSubjectHere”)
then use Save Attachment activity in Then part

1 Like

@Abad_Sid,
Once go through with this, hopefully it will help you.

Get Outlook Mail Messages Filter Filter By Subject

Use for each activity to iterate each mail, then inside loop use save attachment activity to download an attachments to a particular location.

Cheers !

1 Like

Hey @Abad_Sid
You can mention the specific subject you want . Use “If Condition” activity.
and then use “Save attachment” activity.
Thanks!

1 Like

Hello abad,
Hope this helps,

can you send me xaml file for it.

Thanks all for the reply guys.

no problem!
here it is
cheers @Abad_Sid
Retrieve Email Info.xaml (6.9 KB)

1 Like

Thanks I will try it out

1 Like

sure Let me know !

there is an error in the if condition there is no subject. it is giving error

did you change the “yoursubject” string

1 Like

I get it now there is no error but it is no downloading the files from the subject.

1 Like

okay!
check if there is any files attached to that subject and check the folder path is right or not!

Files are not downloading.
What should I do?
path is right and there is data present in the mail
I am using outlook for this so I have changed the server
imap-mail.outlook.com
but still not working

okay gemme a minute ill send you the sample!

1 Like

I found out my mistake in mail message it was reading unread messages only

1 Like

cheers!
@Abad_Sid

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.