cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Pstork1
Dual Super User III
Dual Super User III

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

v-lin-msft
Post Prodigy
Post Prodigy

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
Pstork1
Dual Super User III
Dual Super User III

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

Anonymous
Not applicable

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.


 

Pstork1
Dual Super User III
Dual Super User III

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.
Anonymous
Not applicable

 

 

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). 

 

 

Pstork1
Dual Super User III
Dual Super User III

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.
v-lin-msft
Post Prodigy
Post Prodigy

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

Anonymous
Not applicable

Thanks for your help!

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,201)