Hi Everyone,
I want to check the email with subject Health Care forms if I have I have to download only the attachments Dental,CMS and UB.
can anyone suggest how can we do without looping.
I know that we can save the attachment and use for each and then save the specific attachment I need.
I don’t want to use save attachment twice.
Any suggestion pls directly how can I do it.
check the subject and download the required attachment Dental,UB,CMS
@Gayathri_Mk ,
Apologies, I used it in Outlook scope.
Try this
Use If Condition to filter the Attachments and Subjects
currentItem.Subject.ToLower.Contains("subject in lower case") And currentItem.Attachments.Any(Function(attachment) attachment.Name.ToLower.Contains("dental") Or attachment.Name.ToLower.Contains("cms") Or attachment.Name.ToLower.Contains("ub"))