Need to filter only xlsx attachment file

HI

I have this condition in “IF” activity and i need to add, only xlsx files
currentMailMessage.Attachments.Count =2

Hi @Soudios can you tell me what you want to do exactly ?

Hi @Soudios

Try this

currentMailMessage.Attachments.Count = 2 AndAlso currentMailMessage.Attachments.All(Function(attachment) attachment.Name.ToLower.EndsWith(".xlsx"))

Regards,

i want to have 2 conditions

This one : currentMailMessage.Attachments.Count =2
And this one : only xlsx files

@Soudios

If you want 2 conditions then

1.currentMailMessage.Attachments.Count = 2
2.currentMailMessage.Attachments.All(Function(attachment) attachment.Name.ToLower.EndsWith(".xlsx"))

Regards,

Hi @Akash_Javalekar1
thank you !

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.