How do you go on to iterate through attachments of a mail and download only those that contain a certain text in the name?
Thank you for the help!
LE: I already have a way to iterate thourgh the attachments and check for the naming but I don t know how to save the attachment to folder. (activities need MailMessage object, I need to save Mail.Attachment object)
Hi, thanks for the general direction but maybe I wasn’t clear enough. Let’s say I have an email with 10 attachments, pdfs, 5 of them contain a certain word in their naming, 5 don’t. I need to download only the 5 that contain that word, from one email.
Not saving the names anywhere, checking while iterating through the attachments, I ve already followed what you suggested, the problem is the activity Save Attachments does not take the type of argument Mail.Attachment it takes Mail.Message. Any solution for that?
I’m checking if the attachment name (they are all pdfs) contains a certain word like “packing”, some contain it some don’t… i just want to download those that do. An email can have 20 such attachments.