Summary: How to use Microsoft Flow (Power Automate) to automatically handle email.
Date: Around 2020
Refactor: 1 March 2025: Checked links and formatting.
On this page you'll see the flows I created for automatic email handling. The following functionality is used:
I used two flows for this.
The first flow saves the attachment on a location in sharepoint online:
When creating a file on sharepoint, if the folder does not exist, follow these steps to have SharePoint automatically create the folder for you:
Currently, adding and removing / does not seem required anymore. It just works now.
It is possible to have a custom name depending on the date, use the expression option for that and use an expression like: formatDateTime(utcNow(), 'yyyy-MM-dd')
.
Depending if a specific line in the subject of the mail is found, the mail gets saved to sharepoint and marked as read, or is only marked as read:
When handling html email sometimes signatures (or included html objects) are also handled. Based on your specific files you can skip these files so they do not get saved. See below the start of a flow that skips attachments with the “Attachment Name” that contains: .png
: