How to write a query for Filter by filename property in save email attachments activity

Hi @balanirmalkumar.s
Try this,

If(currentOffice365Message.Attachments.Any(Function(x) Path.GetExtension(x.Name).ToLower = “.pdf”), “.pdf”, “.xls”)