Error - How to use For each mail + Download Email Attachments

Hey everyone, how’s it going?

I’m facing a major issue and can’t get both activities to work.
My scenario:
I need to identify emails based on their subject and/or sender, and download attachments of types .pdf and .xml.

However, after numerous tests, I can’t even manage to download the PDF.
Below is the current setup I have. Does anyone have any tips?

  1. When I use For Each Mail, I get a generic error:
    2.“An unspecified error has occurred”*
  2. If you look at the screenshot below, there’s another activity, Get Mail. With this one, I can at least retrieve the emails. However, when I try to download the attachments using a For Each, the automation runs without errors, but the attachments are not downloaded.

Thank you so much for any help or alternative solutions!

error #ForEachMail download

Email send

Hi @Jesse_Pereira_De_Oliveira,
For the second screenshot, could you please provide the properties panel for the “Get Mail” and “Download Email Attachments” activities?

Hi @Julian_Muhlbauer