cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Automaticallyunzip files from Outlook and saving on SharePoint

Hello Everbody

Please i need an advice, i´m working  developing a flow, so I can download an attachment(.zip folder) from Outlook and save it on sharepoint library with a custom name(filtering the Subject), but I don't know how to Automatically  unzip each folder as a task on my flow. 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Dual Super User II
Dual Super User II

Re: Automaticallyunzip files from Outlook and saving on SharePoint

You can use the Extract Folder action in Flow to unzip a .ZIP file.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Post Prodigy
Post Prodigy

Re: Automaticallyunzip files from Outlook and saving on SharePoint

Hi @Anonymous,

 

Based on your requirement, I have created a flow workaround you can refer to:

Annotation 2019-06-28 172305.png

-If Yes, Perform the following steps:

  • Extract folder;
  • Get file content of the unzipped files;
  • Create file and rename the file based on your email subject.

substring(item()?['Name'],lastIndexOf(item()?['Name'], '.'),5)

Since my test file is excel file, so I need to set the third parameter of substring() as 5, counting from '.' .

Annotation 2019-06-28 172547.png

 

Please have a try, hopes it can help you.

 

Best Regards,

Community Support Team _ Lin Tu

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

8 REPLIES 8
Highlighted
Dual Super User II
Dual Super User II

Re: Automaticallyunzip files from Outlook and saving on SharePoint

You can use the Extract Folder action in Flow to unzip a .ZIP file.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Automaticallyunzip files from Outlook and saving on SharePoint

But if I use extract folder action... 

Can I keep the custom name given to the file?


@Pstork1 wrote:

You can use the Extract Folder action in Flow to unzip a .ZIP file.


 

Highlighted
Dual Super User II
Dual Super User II

Re: Automaticallyunzip files from Outlook and saving on SharePoint

What custom name do you mean?  The custom name of the Zip?  The files inside the archive already have names.  You are unzipping the files to some location.  I'm not following your question.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Anonymous
Not applicable

Re: Automaticallyunzip files from Outlook and saving on SharePoint

 

 

First Thanks for your feedback.

I know that the files inside the .zip already have names, but I use the Subject of the email to give them a custom name on my sharepoint folder. For ex.- Subject : Important file code office:#103 code day: 002 Sunday.

So I extract those codes and use it as a name(doesn't matter the name inside the .zip). 

 

 

Highlighted
Dual Super User II
Dual Super User II

Re: Automaticallyunzip files from Outlook and saving on SharePoint

I don't believe you have the option to rename the files during the unzip process.  You don't really get that option when unzipping to a desktop folder either.  You have to rename the files after.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Post Prodigy
Post Prodigy

Re: Automaticallyunzip files from Outlook and saving on SharePoint

Hi @Anonymous,

 

Based on your requirement, I have created a flow workaround you can refer to:

Annotation 2019-06-28 172305.png

-If Yes, Perform the following steps:

  • Extract folder;
  • Get file content of the unzipped files;
  • Create file and rename the file based on your email subject.

substring(item()?['Name'],lastIndexOf(item()?['Name'], '.'),5)

Since my test file is excel file, so I need to set the third parameter of substring() as 5, counting from '.' .

Annotation 2019-06-28 172547.png

 

Please have a try, hopes it can help you.

 

Best Regards,

Community Support Team _ Lin Tu

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

Highlighted
Anonymous
Not applicable

Re: Automaticallyunzip files from Outlook and saving on SharePoint

Thanks for your help!

Highlighted
Regular Visitor

Re: Automaticallyunzip files from Outlook and saving on SharePoint

Hi v-lin, could you please share with me the full flow on how to automatically extract an outlook zip file and then save in Onedrive for business with new name? This would be awesome since I tried your workaround you posted above but somehow it does not work. Thank you very much!

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,887)