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
abm
Super User III
Super User III

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 blogPower Automate Video Tutorials

View solution in original post

14 REPLIES 14
abm
Super User III
Super User III

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

abm
Super User III
Super User III

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 blogPower 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

abm
Super User III
Super User III

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 blogPower Automate Video Tutorials

View solution in original post

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/

abm
Super User III
Super User III

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 blogPower 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

abm
Super User III
Super User III

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 blogPower 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

abm
Super User III
Super User III

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 blogPower 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 

abm
Super User III
Super User III

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 blogPower Automate Video Tutorials

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,533)