From Inbox to SharePoint—Automatically Unzip, Upload and overwrite Files with Power Automate
- MirVel
- Apr 24
- 2 min read
Updated: Aug 2
Manually downloading ZIP email attachments, extracting files, and uploading them to SharePoint can be time-consuming and error-prone. What if you could automate the whole process? In this guide, I’ll walk you through a simple Power Automate flow that does exactly that. Every time you receive an Outlook email with a ZIP attachment (like a CSV report), it will automatically save the file, extract the contents, update the correct folder in SharePoint, and even clean up the old files — all without lifting a finger. No coding required!
Let's start with Power Automate steps
Open Power Automate in Cloud (make.powerautomate.com) and click Create => Automated cloud flow
Choose a Trigger: When a New Email Arrives (V3)

Trigger: When a New Email Arrives
The flow starts when a new email is received in Outlook (Office 365).
It uses the trigger "When a new email arrives (V3)".
You can filter by:
Sender (From)
Recipient (To)
Subject line
And make sure it only runs if there's an attachment (like a ZIP file).
✅ Important: Make sure your primary Outlook account is connected.

Compose Action
A Compose action is added to read the contents of the attachment.
It uses the dynamic field contentBytes, which contains the ZIP file data.
This data will be used to create a temporary file in the next step.

Create File in SharePoint (SP)
This step creates the ZIP file in a specific SharePoint folder.
It uses the function in dynamic content:
base64ToBinary(outputs('Compose'))
to convert the file content from encoded format into binary, so it can be saved properly.
You choose:
Site Address
Folder Path
File Name

Extract Folder (Unzip the File)
After the file is saved, it’s automatically unzipped using the “Extract folder” action.
You define:
Where the ZIP file is
Where the extracted files should go
It can overwrite files if they already exist.

Delete the Original ZIP File
Once the CSV file is extracted, the original ZIP file is no longer needed.
This step deletes the ZIP file to keep things clean.
It uses the file’s ID from the earlier Create File step.

And that’s it! With just a few steps, your Power Automate flow is now ready to handle ZIP email attachments like a pro. This solution helps you keep your SharePoint folders clean and always updated — no more manual downloads, extractions, or uploads.
If you’re just starting with automation, this is a great example of how small workflows can make a big impact in your daily routine. Give it a try, and feel free to tweak the flow to match your exact needs!
Have questions or want to see more Power Automate tips like this? Leave a comment below or reach out — I’d love to hear how you’re using automation to make life easier. 🙌