Retrieving email attachments from a "get Email list" actvity

Hello, i am using a Get Email List activity - UiPath.GSuite.Activities.GetEmailListConnections.
The output goes into a gmail_messages variable which has type List.

i can use this in a For Each activity and retrieve information about each gmail message .
However i have been trying in several to save the attachment of each message, for example with a “save attachment”, but i do not see any attachment downloaded

image

Should i use a different activity rather than “save attachment” ? I have tried several things such as adding a “get email by ID” inside my For each loop , in the hope that from there i could maybe save the attachment but then i do not find the email ID from my original “get email list” output to put as input to the “get email by ID” (ie i do not know how to get it from the currentitem in my for each loop)

Hi @MKB

In the save attachements give the folder path. Instead of the data give the folder path and it will work.

Regards

Hi @MKB

Check the below thread:

Regards

Hi @MKB

First check the mail have any attachments or not by using If condition,

- Condition -> currentItem.Attachments.Any

→ In then block insert the Save attachments activity and pass the cuttentItem in the Message option, give the folder path which already created in your local machine.
→ In else block insert log message activity to know the mail doesn’t have attachments in it.

Check the below workflow for better understanding,

Hope it helps!!

Hi @MKB

Try below-

Ref - https://docs.uipath.com/activities/other/latest/productivity/save-mail-attachments-x

I have tried to use the GET IMAP MAIL activity but struggle badly with an SSL/TLS issue - i wasted a full day hereon yesterday so decided to drop this and try the Get Email List

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