I’ve been perusing the Flow Community lately (if you haven’t yet, I strongly encourage it) and I noticed multiple questions related to filtering email attachments.
For example, a user gets an email and only wants to save the PDF/DOCX/XLSX (excluding images) somewhere. Most HTML email signatures contain images making this feature helpful.
Note: Saving the files to OneDrive for Business, a SharePoint site, or even a local file share does not matter in this instance.
Previously, we would either need to use a Switch action for each statement per file extension or write a long OR IF expression in the Condition box. With the latest improvements in Conditions, we can now easily accomplish this using the “Attachments Name”:
After it runs, you will see it found 6 attachments, but only saved 2 files:
New improvements with the Condition action make saving email attachments a breeze. Watch this 10 minute video to walk you through the entire process, step-by-step.
How to Filter Email Attachments with Microsoft Flow
Hope you enjoyed the quick walk-through, be sure to reach out to us if you have any questions or need any help with Microsoft Flow!