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

12 REPLIES 12
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

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (50,672)