cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nielsmans
Frequent Visitor

Create folders based on excel list

I'm quite new to power automate, so excuse me if i'm asking a rookie question.

 

I would like to create a set of folders bases on a list in excel. From the excel file I would like to get the employee name and create a folder for every name in de list.

 

description of the flow:

  • Create year folder (current year)
  • Create subfolder for every employee
  • Create Word file based on template in folder with employee name.
  • Share sharepoint link to Word file with employee (email adres is in the excel list)

Nice to have

When a new row is created in the Excel file do the flow for that row.

 

Maybe it is an ambitious flow, for now i'm stuck in creating a folder based on the excel list. Some tips would be very welcome

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Nielsmans 

 

Please follow the below steps

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

14 REPLIES 14
abm
Super User
Super User

Hi @Nielsmans 

 

Please follow the below steps to create folder and subfolder

 

image.png

 

For the current year you need to use formatDateTime expression. See below.

 

formatDateTime(utcNow(),'yyyy')
 
The final step I have hardcoded the name as Smith. You can change this to map dynamically from your Excel sheet.
 
Thanks


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Nielsmans
Frequent Visitor

Thank you for your quick reply. For looping thru the excel rows for the names do I need to put in a "get a row" step between the create main folder and create subfolder? I was trying to do that but I don't now what to put in the Key value field.

Hi @Nielsmans 

 

Could you post a sample screenshot of your Excel Sheet?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Nielsmans
Frequent Visitor

I would like to use the 'Employee' column as the name of the subfolder. And eventually 'Mail' to send the share link 

 

Screenshot 2021-01-13 at 14.12.22.png

Hi @Nielsmans 

 

Please follow the below steps

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Nielsmans
Frequent Visitor

Thank you for your help @abm 

I have the basics working, one last question. The folder creation in sharepoint(teams) is happening in the Root folder and I’m not able to select a subfolder, like /general/

Hi @Nielsmans 

Thanks for your reply. Are you referencing about the subfolder select trigger? If not please explain?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Nielsmans
Frequent Visitor

I'm bit of a step further, i'm able to create the main folder in General, where I want it. But i'm still doing something wrong in the create subfolder(Maak subfolder). For this he is creating a folder names shared documents then he is creating a complete new path document/general/and then the subfolders.

 

Am I taking over the wrong value in create subfolder?

 

Screenshot 2021-01-18 at 08.23.47.png

Nielsmans
Frequent Visitor

Hi @abm 
I haven't changed the flow but i now get this error, where before this was running fine. And i'm testing with the same excel file

Screenshot 2021-01-22 at 15.17.45.png

Hi @Nielsmans 

 

Looks like you are hitting the threshold limit. I can see 5120 record in that loop to process.  How many total records in Excel?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Nielsmans
Frequent Visitor

hi@abm 

Yes you are right, the range of the table was far to high. I adjusted that.

What i'm still struggling with is the location of the folders that are created.

The main folder of sharpoint is Document. Within documents we have General and there is want to create my folders:
Like Document/General/NewMain/Newsubs

My flow is now creating a shareddocuments folder in Documents, within shareddocuments he is creating a new general en then the folders of my flow.

 

my create main is looking like this:

Screenshot 2021-01-25 at 17.25.20.png

Hi @Nielsmans 

 

Under the Folder Path you can extend by adding the other folder names.

 

General/NewMain/Newsubs



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
liamb7951
Frequent Visitor

Hi there, did you manage to solve this issue as I've been struggling to solve this for a couple of weeks now. Tried using VBA but unsuccessful, seen power automate may be an option but have 0 experience using it. @Nielsmans 

Hi @liamb7951 

 

This thread is already marked as solution accepted. You could please create a new thread and describe your requirements please?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,986)