How to check if the email has a spreadsheet (xls/xlsx file) as an attachment

@Jebarohith19 I guess you need to compare and Check, what was the Difference :sweat_smile:

1 Like

@Jebarohith19 I believe you have used this Expression in your xaml instead of What I had suggested :sweat_smile: :
item.Attachments.Where(Function(attach) attach.Name.ToLower= “.xlsx”)

Contains and equals symbol different here too ?

@Jebarohith19 Yes :sweat_smile:, Equals meaning that it Should be exactly equal to .xlsx but it is not, Since your Excel will be in this form “yourFileName.xlsx” hence contains will be the Actual working way.

I hv changed it now thanks and i also made a mistake like variable.tolist.count

1 Like

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