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

Does does it mean you need to save all attachments irrespective of file type? In that case you don’t have to check for file type.

If you have to restrict PDF from saving,you can use below regex in save attachment filter to prevent PDF from         downloading.

        (\.|\/)(?!PDF|pdf).*

You could also validate in below way to see if any of your attachment is PDF.

If (item.Attachments.Where(Function(x) x.Name.Contains(“.pdf”)).Count >0)

ps: my mobile posting sucks!

10 Likes