Query about attachment

realize this condition(if…else) with the body of a message item.Body.Contains(“Tabla”), how can I do the same but with the name of an attachment?

it’s possible?

mail.Attachments.Where(Function(x) x.Name.Contains("Tabla"))

1 Like

Thanks for your response, I got the following error. Something did wrong.

Help me please

append .Any or .Count >0

1 Like

Ok, thank you for your prompt response, it works perfectly. :slight_smile: :slight_smile: