Downloading Attachments in Email Replies

How to download attachments from the email replies? As I use the Save Attachments activity, the robot only downloads the attachments from the first email of the thread.

Based on the picture, the 2 .docx files are being attached at the replies of the first email in the thread. However, the 2 .docx files are not being downloaded despite of the Save Attachments activity.

How can I solve this? Thank you.

Best regards,
Robert

Sir @Palaniyappan, can you help me?

1 Like

I believe the Save Attachments activity only works for a given email.
What you call “thread” is just a way to visualise related emails.

You have to find a way list all the emails in the thread and loop the Save Attachments for this list.

1 Like

Thank you for the reply but can you further explain and kindly show how it is done?

Can you tell me which activity you are using to read emails?

1 Like

We use Get Mail Message from Gsuite Activity.

The output of that activity is an array of mail messages.
Try using the For Each activity (TypeArgument: UiPath.GSuite.Models.GmailMessage) and inside the loop use the Save Attachments activity.

Sorry I can’t help you more in this matter. I never used Gsuite activities.

1 Like

Thank you for the help and effort but I have already tried this and it doesn’t loop each email reply in the thread.

Best regards,
Robert

Sir @Pratik_Wavhal, can you help me with this? Thank you.

Best regards,
Robert