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

How to auto-create Folders & Files when a Channel is created

Hi, 

I have a very important project to complete, but I need assistance on this Auto Flow:

What I need is: 

  • When A Channel in teams is created, it must go and created the relevant folders in that channel (make use of SharePoint),
  • And fetch templets (Folders & Filles) and store them in a templates folder that Exists

This looks like a simple automate flow but I can't get it right.

 

Any help I will surely appreciate that

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User III
Super User III

Hi @Michaelelie333 

 

I tried the trigger like below and worked as expected.

 

Below I have set the Site Address as SharePoint Site/sites/yourteamname. Once you set the site name then there won't be anything to select under ListName. Then  click Enter custom value and set the name as Documents. 

 

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

10 REPLIES 10
abm
Super User III
Super User III

Hi @Michaelelie333 

 

There is no Power Automate action available to create folder using Microsoft Teams connection. When you create folder under the channel it creates a folder under your SharePoint site. What you could do is create the folder under your SharePoint site using Power Automate SharePoint create folder action step.

 

https://{yoursharepoint.com}/sites/{YourTeamName}/Shared Documents/{YourChannel}

 

If you need any further help in this please let me know.

 

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

Hi @abm,

 

Yes, If possible yes, I can use Sharepoint to create that.

All processes must happen in Flow.

 

Do you have an approach or an idea of how I could resolve my problem?

abm
Super User III
Super User III

Hi @Michaelelie333 

 

Earlier I have asked your screen share details. I haven't heard anything from you yet. Unfortunately I won't be able to do now.

 

Could you please try the following.

 

1. Set the trigger as when as channel is created

2. Use create folder (SharePoint) action step. See below. Please see refer my earlier reply for the correct path.

image.png

 

3. Next add Copy file action step (SharePoint) for copying the files to your newly created location

image.png

 

If you still having issues lets try a screen share on tomorrow.

 

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

@abm  Thank you for your help.

 

I have attached a screenshot below. I think it will give you an idea of what I'm trying to achieve.

 

1. Since Teams does not have a trigger of : after channel is created , I have made use of SharePoint to trigger after new folder is created in Library. But still this does not work. After a channel is created, there is a new folder in the shared Documents (sharepoint) but does not trigger and I don't know why.

 

2. I will check if it's a folder then if yes create folder and copy folder. if not, do nothing.

 

This flow does not trigger! I so frustrated now. please help.

 

3. Copy folder does not work too, but we will see that once the previous process are completed.

 

SCREENSHOT:

 

Solution 1.PNG

abm
Super User III
Super User III

Hi @Michaelelie333 

 

I tried the trigger like below and worked as expected.

 

Below I have set the Site Address as SharePoint Site/sites/yourteamname. Once you set the site name then there won't be anything to select under ListName. Then  click Enter custom value and set the name as Documents. 

 

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

@abm  Yes and thank you for your helpful reply.

 

Indeed, Once I set the List Name as 'Documents' I will lead to an answer.

 

But My question is, Own would you differentiate that the folder that was auto-created is a Channel folder and NOT a use action to create a folder?

 > This flow can work for new channel and also new Add new folder

 

I actually, want the Flow to recognize ONLY the Teams Channel folder on SharePoint then carry on with the rest of the process.

 

Is there anything in place for that Yet? 

 

 

abm
Super User III
Super User III

Hi @Michaelelie333 

 

Thanks for your reply. Use flow create folder to a service account connection so that you can easily distinguish who created the folder. The downside is you need another user license.

 

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

Hi @Michaelelie333 

 

Other workaround is add another column and update the meta data once the folder is created via flow.

 

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

Hi @abm 

 

May I have an illustrations?

abm
Super User III
Super User III

Hi @Michaelelie333 

 

This is what I was thinking.

 

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

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,095)