I have the task of downloading the attachments from outlook. The downloaded file should only be a doc, Docx and pdf file other files should not be downloaded. I have got the extension of the received attachment using the syntax FileNameFromPath(0).Split(CChar(“.”))(1)
Now I don’t know how to compare this extensionnn with my criteria and save I can’t use any condition statement because it asks for a boolean type condition which I cant give.
If u have the extension then use if condition
FileNameFromPath(0).Split(CChar(“.”))(1).contains(“doc”) or FileNameFromPath(0).Split(CChar(“.”))(1).contains(“Docx”) or
FileNameFromPath(0).Split(CChar(“.”))(1).contains(“pdf”)
Hi @soumi_soumiya,
I think, you need not to compare extensions when you only need files of mentioned type. During using ‘Save Attachments’ activity use ‘Filter’ option. And write the below in ‘Filter’ box -
“(.pdf|.docx|.doc)”