I have come across a situation where there could be multiple attachments in an email with the same name. If we use Save Attachments activity, It downloads only 1 file. Maybe it is replacing as files are with a same name.
I know the same can be achieved using VBA, VBS, VB.Net, Custom Activity but it would be great if @uipath enhance its existing activity.
@Pablito
Hi @vikaskulhari
You can use mailmessage.Attachments and store it into collection of attachments
Using a foreach you can download all attachments.
list=System.Net.Mail.AttachmentCollection
list=mailmessage.Attachments
2 Likes
Thanks Lakshay. But It would be great if same thing works using the save attachments activity.
It will. You just need to pass list item in save attachment activity.