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
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)
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,
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