cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
josefulander
Level: Powered On

Extracting archive with empty folders on SharePoint

Hi!

 

I would like to create a flow that extracts a file containing a certain folderstructure each time an item is added so a list. The flow itself is preaty simple to setup, however, if the folder is empty in the archive(ie contains no files) its not created at all in sharepoint. A workaround would be to place a simple text file in each folder. But the folderstructure is quite large and it would be quite time consuming to do so. Is there another way around this?

 

Help appriciated!

4 REPLIES 4
Community Support Team
Community Support Team

Re: Extracting archive with empty folders on SharePoint

Hi @josefulander,

 

According to your description, I created a flow with the trigger “When an item is created” and the action “Exact folder” to test this issue.


The flow is configured likes below.


Then when an item is created, the specific file would be exacted to the destination folder no matter the folder is empty or not.

3.PNG

 

I am not able to reproduce your issue on my side. If your flow configuration is different with mine, please share a screenshot to help reproduce this issue on my side.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ard
Level: Power Up

Re: Extracting archive with empty folders on SharePoint

This post ist already quite old. I do however have the same problem with sharepoint online. Did you find a better solution than placing text files in each folder?

Maxi
Level: Power Up

Re: Extracting archive with empty folders on SharePoint

Same here Smiley Sad

Did you ever get a resolution to this. Placing a file in each folder is untenable for me too.

Re: Extracting archive with empty folders on SharePoint

Adding files to the folders is quite cumbersome. Don't do it. 

 

You probably won't like the solution but why not have a SharePoint Site with your templates unzipped?

 

You can copy the folder to the destination (empty folders and all). If the folders are empty, you won't gain much in zipping them anyway. 

 

Here are the steps (I have a full article with all details here)

 

1. Create the SharePoint site with the templates

2. Create a Simple Flow

I'm using the same instance as source and destination for this example.

3. Run the flow

 

Let me know if this solves your issue and don't forget to mark as "Accepted" if this helped.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 269 members 3,838 guests
Please welcome our newest community members: