cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pringle
Level: Power Up

Automate/Flow to take email attacments and if contrain .Zip file extract to SharePoint Folder

I have a Flow running which successful takes emails that arrive to a shared mailbox and if they have attachments, it saves them to a SharePoint folder destination. I get quite a few zip files as email attachments and instead of saving the zip file to the SharePoint folder, I would like to be able to extract its contents and save that to the same SharePoint Folder destination instead. 

 

Below is the condition I have added but it has a requirement for a source file path, which I assume varies due to the email attachment. 

Capture.JPG

 

Any help or guidance on this would be greatly appreciated.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Automate/Flow to take email attacments and if contrain .Zip file extract to SharePoint Folder

Hi @Pringle ,

 

You couldn't extract the .zip file from the email attachment.

Please take a try to save the .zip file in the sharepoint folder and then extract it with Microsoft flow.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Pringle
Level: Power Up

Re: Automate/Flow to take email attacments and if contrain .Zip file extract to SharePoint Folder

Hi Alice,

 

Thank you for your advise which I have tried and built into my flow and works. The challenge I now face is when a .zip folder is extracted, it extracts to another folder. I have tried re-running the Extract Folder action to get the folder contents (documents)  to extract to the desired folder location, but as it is no longer an attachment or a .zip file - I am unable to use the "attachment name" dynamic content in my source file path (See Below)

Flow 1.JPG

 

 

Flow 2.JPG

Any further advise you can provide on how I can re-extract the new created folder to the desired end folder location would be greatly appreciated

 

View solution in original post

3 REPLIES 3
Highlighted
Community Support Team
Community Support Team

Re: Automate/Flow to take email attacments and if contrain .Zip file extract to SharePoint Folder

Hi @Pringle ,

 

You couldn't extract the .zip file from the email attachment.

Please take a try to save the .zip file in the sharepoint folder and then extract it with Microsoft flow.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Pringle
Level: Power Up

Re: Automate/Flow to take email attacments and if contrain .Zip file extract to SharePoint Folder

Hi Alice,

 

Thank you for your advise which I have tried and built into my flow and works. The challenge I now face is when a .zip folder is extracted, it extracts to another folder. I have tried re-running the Extract Folder action to get the folder contents (documents)  to extract to the desired folder location, but as it is no longer an attachment or a .zip file - I am unable to use the "attachment name" dynamic content in my source file path (See Below)

Flow 1.JPG

 

 

Flow 2.JPG

Any further advise you can provide on how I can re-extract the new created folder to the desired end folder location would be greatly appreciated

 

View solution in original post

Community Support Team
Community Support Team

Re: Automate/Flow to take email attacments and if contrain .Zip file extract to SharePoint Folder

Hi @Pringle ,

 

If you have any other question you could create a new post so it could be answered quickly.

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,469)