Using Azure Logic Apps

What For?

I receive email, like everyone else and I use a Cloud File Storage provider (Onedrive). The situation I do want to solve is:

  • Every time I receive an email with attachment(s) I want to save them to a folder in Onedrive.           E A S Y.

Or so I thought because up until recently this wasn’t possible, and honestly I find it annoying that I can’t save straight from Outlook and/or Office 365 to Onedrive, the consumer version, I recall it’s possible to save attachments to the Business OneDrive version.

So, I went I decided I was tired to not save my attachments and had to go every time to email when I needed to search for a file, and honestly, using email as file storage is one of the worse things anyone can do.

Is just too inconvenient, it’s a closed system with exclusive access to the recipient. Can’t be shared and in case of wanting or having to share the file, it has to be forwarded, to all people involved and good luck keeping track of versions and changes, an electronic nightmare(ish).

What are they?

Logic Apps provide a way to simplify and implement scalable integrations and workflows in the cloud. It provides a visual designer to model and automate your process as a series of steps known as a workflow


There are connectors across the cloud and on-premises to quickly integrate across services and protocols.

The connectors I used:

  1. Outlook 365 for reading every incoming email to the Inbox with attachment(s) included.
  2. OneDrive for Consumer to create the file(s) in the specified folder

This operation creates a new file(s) it does not move and/or delete it/them from the Inbox

The Pictures

This is the OneDrive configuration, which tells to create a file for each of the attachment(s) found from the incoming connector, one very cool/useful thing was the loop, which says, do the same for every attachment. Otherwise, I’d only work for the 1st one. This operation runs every three minutes.

I ran multiple tests with different types of files:





All successful. The rule I made for naming, was: From_Subject_Name. Which will help when in the future I need to search by sender, considering I will store a lot of files created from attachments

This attachment came from with Subject 2124 with file name MITSecurityCertificate. And extension is PDF

Other examples I ran

How the created files look in Onedrive. All Cute and Colourful


Great Service, automating things and forgetting about them is one of the best things anyone can do on anything.