Save email attachment

Dear all,

Good afternoon,

I would like to save a particular attachment (Excel file) from my outlook.

I have construct my workflow and run the workflow but there is no attachment being saved into the folder.

I attached my workflow here.

save email attachment.xaml (6.8 KB)

2 Likes

Hi @eelin,

Please try referring to this post:

Thanks and regards :slight_smile:

Hi @eelin

Kindly remove the account in the input property buddy, and try again buddy, that would be the reason, as your workflow looks good…This will work buddy

Cheers

@Palaniyappan

Thanks for your reply.

I have remove the account but it is still the same.

There is still no attachment download from my outlook and save into the folder path i insert.

Will it is caused by the condition i set as per below?

mail.Subject.Contains(“PL analysis Draft”)

Every month i will received the excel file from our finance department with the subject like

PL Analysis Draft -APR19-ITD

Only the month will change, the other remain the same.

So, actually what should i put for the condition?

1 Like

@Jan_Brian_Despi

Thanks for your reply.

However, what i want to do is download the attachment whereby the subject of the mail contains (PL Analysis Draft).

2 Likes

No worries buddy @eelin

in get outlook activity enable to markasread and onlyunreadmessages, so it will take only the unread messages and once the read it will mark it as read, so that it we wont get the mail repeated again

enter mail.Subject.Contains(“PL Analysis Draft”) alone buddy,the reason is whenever you search for mail in outlook the only unread message having this subject (which would be the new one) will be taken into consideration

Hi @eelin
You may want to add an If condition.
If mail.Subject.ToString.Contains(“PL Analysis Draft”)

1 Like

@Palaniyappan

I have tick the option of “MarkAsRead”

i just receive the latest copy of PL analysis draft on this Tues from my finance.

i tried to run the workflow again.

But it is still no attachment being saved.

i put the TimeoutMS to be 100000000 and the top 100

Is these matters?

@Jan_Brian_Despi

I have edit my condition, but it is still the same.

Thank you

1 Like

Kindly tell me whether the mail was unread before running the bot and it got marked as read after running the bot or not

Cheers

Put a break point at save attachment activity and debug your workflow and see whether you are reaching this point or not and if you are not reaching this point that means your condition is not getting satisfied, that’s why the mails are not getting saved

Dear @Palaniyappan

How can i classified it to be mark as read or unread in my Outlook.

The latest one, i did manually download the file and save in my desktop on this Tuesday.

Thank you.

@eelin
Buddy kindly right click that mail and click mark as unread, so that it would become unread now…
Run your bot now, if the bot gets to the outlook first it will read the unread file as we have enabled onlyunreadmail property in get outlook mail activity, and it mark it as read (i.e., it wont be in a highlighted mode) as we have enabled markasread property in get outlook mail activity as well…
The reason why i ask you to do this is first lets confirm whether it is getting to outlook first or not and then we will check whether its taking the subject condition and marking the correct file as read file or not…if these two things happen then we are good with condition and outlook accessing as well…so it would be done

Cheers

1 Like

is that working buddy

@Palaniyappan

I have go to my outlook and right click that mail and mark as unread

and then i run the workflow

Then it become read now (the status for the mail)

But it is still no attachment being download.

Thank you.

@eelin
Great so the bot is able to see the mail with the filter option that we give amazing…thats all buddy…use a save attachment activity in the for each as a first activity…and pass the input as mail message variable obtained from the get outlook mail activity…and mention the path where you want to save in save attachment activity…thats all buddy you are all done… kindly let know if this works or not

Cheers

@Palaniyappan

Thanks for your reply.

However, there is still no attachment being download and save in the folder path i put.

save email attachment.xaml (6.7 KB)

Buddy remove the filter option in save attachments activity and try buddy… @eelin

@Palaniyappan

It is still the same

Did you mark that mail again as unread and tried buddy @eelin