Email Attachment file


I want to validate the format of email attachment. It should be in .xlsx format and the attachment should be only 1.

please help

have a look here:

with an adoption give a try on:

YourMailVar.Attachments.Where(Function (x) Regex.IsMatch(Path.GetExtension(x.Name).ToUpper,".XLSX")).Count = 1

Sorry but I could’nt understand what to do here

can you show some screenshots from the relevant part of your workflow

there schould be a part where the mail variable is to test. Above statement can be used within an if activity for checking if XLSX attachment is present or not

Thankyou for explaining. Let me try this

It worked for me. Thanks Alot. Can you explain what exactly has happened here?