Your expression looks good on my end:
![]()
Did you check if the mail that you’re checking contains attachments? If the mail does not have attachments, the expression above fails.
Another thing you can check is that the ForEach has the correct Type (as there are other variable types named the same:
System.Net.Mail.MailMessage
