Download attachments emails from specific period (monthly download)

Hello, everyone!

I am trying to download attachments from emails received from specific sender, but I want to run the robot monthly and save the attachments in folders with month`s name.
I have these 2 issues:

  1. How can I specify the sender?

  2. How can I select the period in which the robot to look for the sender`s attachments?

I hope I`ve made myself clear.

I am waiting for your feedback.

Thank you!

1 Like

Hi Marius,

If you are using Get Outlook Email Activity you can Filter emails based on condition that you want.
If you are not, you need to get emails and loop them using certain condition.

You can see more in this topic:

For example you can use “[From]=‘Srdjan Suc’” to filter the Sender.

Hello Srdjan! I am using a gmail account, not outlook. I can filter by sender`s name in that way, but do you have an idea on how can i filter them to download the attachments from period x?
Thank you for your time!

2 Likes

Hi
—hope these steps could help you resolve this

For. Both the cases we got a condition like this in the filter property of the get outlook mail activity
“[SenderEmailAddress] = ‘xxxx@gmail.com” AND [ReceivedTime] >= ‘ “ + Now.AddMonths(-1).ToString(“MM/dd/yyyy”) + “ ‘ AND [RecrivedTime] <= ‘ “ + Now.ToString(“MM/dd/yyyy”) + “ ‘ “

Hope this would help you
Kindly try this and let know for any queries or clarification
Cheers @Marius_Taran

Thank you, Palaniyappan! I will try it and comeback with a feedback. :upside_down_face:

1 Like

Sure
Cheers @Marius_Taran

1 Like

Hello Marius, if you are using gmail account you need to get all the MailMessages and loop over them to check if they have attachments

1 Like