I have a flow that saves email attachments (from Outlook 365) to OneDrive. It adds a prefix to the file name and sets the save path based on the subject of the email.
About 60% of the time it works perfectly, but sometimes the attachment isn't saved. When I look at the run history, the Apply to Each is grayed out, which indicates that no attachments were found. Also, the output of the On New Email step does in fact say
However, in Outlook, I can see that the email does have an attachment (and if I re-forward the email, the flow works the second time). The flow also works as-is some of the time.
I have the On New Email step set up to only include emails with attachments, so I'm not sure why it would trigger at all if it's not picking up the attachment.
I've read that ATP scanning could be a potential cause. However, these attachments are pretty small (100 KB). Also, I'm not sure where I could insert a delay, since the trigger action (On new email) is not returning attachments. Thanks for any ideas on what else to check!
As a workaround, could you try to add an action "Get email" as the first action after your trigger, so that when the email is received, it will get requested a second time by the flow and hopefully with the attachments 🙂
Just a suggestion, not a solution, just to clarify if the issue is in the trigger or not.