My process currently cycles through an email collection one at a time and downloads the email attachments. I have applied a .pdf to the filter in the SaveMailAttachments activity. The only problem is, when an attachment with a .jpg arrives it is producing an error. What is the best way to create an IF statement to check the attachment name ends in pdf please? The variable I am currently using is of “MailMessage” type so I’m guessing it would somehow need to initially need to be converted to a string to also interrogate?
Any help would be greatly appreciated.