Not saving Email attachments

I have a loop that cycles through the emails to save the most recent email and attachment that meets a condition. I then have it save the attachment to a local folder.

When I run this as just saving the attachment to the email, it doesnt appear to do anything. So I added a save email feature and it successfully saves the email, but for whatever reason it will not save the attachment.


Can you try using currentmail please instead of selectedmail