How to save only a specific file type using Save Attachment activity?

Thanks for the reply @vvaidya
At this stage I don’t know how to include regex into a filter (i.e. what comes before it).
The second suggestion would save all attachments so long as 1 x of the attachments was of target type.
Often there are signature elements like .png as well as a true attachmnet life a .csv or .pdf.

I adapted my solution from this post How to save perticular file from outlook, when the attachments contains multiple files - #3 by aksh1yadav thanks @aksh1yadav

Specifically I used this filter as a condition

Path.GetExtension(attachmnt.Name).Contains(“pdf”) = True Or Path.GetExtension(attachmnt.Name).Contains(“xls”) = True Or Path.GetExtension(attachmnt.Name).Contains(“csv”) = True Or Path.GetExtension(attachmnt.Name).Contains(“txt”) = True Or Path.GetExtension(attachmnt.Name).Contains(“csv”) = True

5 Likes