Beginner lost in vocabulary - seeking a way to create folders programmatically

%3CLINGO-SUB%20id%3D%22lingo-sub-2007565%22%20slang%3D%22en-US%22%3EBeginner%20lost%20in%20vocabulary%20-%20seeking%20a%20way%20to%20create%20folders%20programmatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2007565%22%20slang%3D%22en-US%22%3E%3CP%3EGreetings.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20looking%20for%20a%20way%20to%20programmatically%20create%20a%20set%20of%20folders%20in%20a%20document%20library.%20I%20have%20no%20training%20or%20background%20in%20SharePoint%20or%20Teams.%20I'm%20trying%20to%20help%20out%20my%20organization%20while%20I%20have%20some%20unoccupied%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20found%20several%20online%20examples%20of%20using%20a%20triggering%20a%20Flow%20using%20a%20Power%20App%20to%20create%20a%20folder%20-%20but%20every%20one%20I%20find%20seems%20to%20be%20bound%20to%20a%20particular%20SharePoint%20site%20at%20the%20time%20of%20creation%2C%20and%20I%20need%20to%20be%20able%20to%20execute%20this%20behavior%20frequently%20as%20new%20sites%20are%20created.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20per%20the%20subject%20line%2C%20a%20major%20frustration%20is%20the%20vocabulary.%20I'm%20having%20trouble%20finding%20rigorous%20definitions%20of%20Flows%20and%20Power%20Apps%2C%20so%20I%20might%20be%20asking%20for%20the%20wrong%20thing%20-%20or%20even%20in%20the%20wrong%20place.%20It%20an%20ideal%20world%2C%20the%20entire%20automated%20process%20would%20include%20or%20even%20be%20launched%20from%20Teams.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20the%20creation%20of%20a%20%22team%22%20in%20Teams%20creates%20a%20%22site%22%20in%20SharePoint%2C%20and%20the%20creation%20of%20a%20%22channel%22%20in%20the%20team%20creates%20a%20%22document%20library%22%20in%20SharePoint%2C%20which%20can%20be%20accessed%20as%20a%20%22Folder%22%20via%20OneDrive.%20I%20might%20be%20wrong%20on%20any%20or%20all%20of%20those%20points%20and%20don't%20know%20where%20to%20go%20to%20prove%20it%20one%20way%20or%20the%20other.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20clues%20welcome.%20Thanks%20for%20your%20time.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2007565%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2007590%22%20slang%3D%22en-US%22%3ERe%3A%20Beginner%20lost%20in%20vocabulary%20-%20seeking%20a%20way%20to%20create%20folders%20programmatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2007590%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%20let%20me%20see%20if%20I%20can%20help%20a%20bit%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMicrosoft%20Teams%20uses%20SharePoint%20to%20store%20documents.%3C%2FP%3E%0A%3CP%3E-%20When%20a%20Microsoft%20Team%20is%20created%2C%20a%20SharePoint%20site%20is%20created%20to%20store%20documents%20for%20that%20Team%3C%2FP%3E%0A%3CP%3E-%20Each%20Channel%20in%20the%20Team%20has%20a%20Folder%20in%20the%20'Documents'%20library%20(default%20library)%20of%20that%20SharePoint%20site%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPower%20Automate%20is%20used%20to%20create%20Flows.%20A%20Flow%20is%20a%20workflow%2C%20that%20triggers%20either%20manually%20or%20when%20an%20event%20of%20some%20type%20occurs%20e.g.%20a%20new%20document%20is%20added%20to%20a%20Document%20Library%2C%20an%20email%20is%20recieved%2C%20a%20List%20item%20is%20created%20or%20modified%20etc%20(there%20are%20hundreds%20of%20triggers%20for%20different%20applications)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Folder%20creation%20Flow%20you%20mention%20is%20usually%20associated%20with%20a%20specific%20Library.%20If%20you%20want%20to%20create%20a%20set%20of%20folders%20each%20time%20a%20new%20SharePoint%20Site%20is%20created%20then%20you%20can%20use%20a%20Site%20Design%20Script%20to%20run%20a%20Workflow%20when%20the%20Site%20is%20created.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMicrosoft%20provides%20lots%20of%20free%20training%20material%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Flearn%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft%20Learn%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20that%20helps%20a%20little.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2009845%22%20slang%3D%22en-US%22%3ERe%3A%20Beginner%20lost%20in%20vocabulary%20-%20seeking%20a%20way%20to%20create%20folders%20programmatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2009845%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F43161%22%20target%3D%22_blank%22%3E%40Steve%20Knutson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20does%20help%2C%20and%20I%20thank%20you%20for%20it.%3C%2FP%3E%3CP%3EI%20am%20now%20going%20to%20express%20frustration%2C%20which%20is%20directed%20at%20the%20situation%20in%20which%20I%20find%20myself.%20and%20not%20at%20you%20-%20nor%20do%20I%20expect%20you%20to%20provide%20answers!%20I%20hope%20people%20will%20give%20answers%20and%20opinions%2C%20but%20I%20can't%20demand%20them.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20frankly%20welcome%20opinions%20along%20the%20lines%20of%20%22You're%20going%20about%20this%20entirely%20the%20wrong%20way%22%2C%20because%20right%20now%20it%20looks%20to%20me%20that%20the%20answer%20to%20how%20to%20start%20with%20MS%20365%20is%20%22Have%20a%20completely%20different%20background%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESome%20specifics%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B-%20is%20it%20a%20'Library'%20called%20'Documents'%2C%20a%20'Document%20Library'%20called%20'Documents'%2C%20or%20something%20else%3F%3C%2FP%3E%3CP%3E-%20Does%20that%20answer%20vary%20between%20SharePoint%20versions%2C%20and%20how%20do%20I%20determine%20what%20version%20I'm%20using%3F%3C%2FP%3E%3CP%3E%26nbsp%3B-%20are%20'files'%20and%20'Documents'%20interchangeable%20terms%3F%20Is%20an%20executable%20program%20a%20'Document'%20if%20it%20is%20stored%20in%20a%20'Library'%3F%20Is%20a%20'folder'%20in%20a%20'Library'%20exactly%20analogous%20to%20a%20folder%20in%20a%20folder%20on%20an%20NTFS%20filesystem%3F%3C%2FP%3E%3CP%3E%26nbsp%3B-%20I%20investigated%20Site%20Design%20Scripts%20and%20it%20looked%20promising%20at%20first%20-%20but%20then%20I%20found%20no%20verbs%20for%20creating%20folders.%20I%20did%20find%20information%20on%20getting%20more%20functionality%20by%20calling%20Flows%20(but%20then%20we're%20right%20back%20to%20figuring%20out%20how%20flows%20can%20be%20created%20that%20are%20not%20bound%20to%20Sites)%20and%20PnP%20(yet%20another%20mystery%2C%20which%20in%20turn%20depends%20on%20PowerShell%20Core%2C%20which%20is%20a%20further%20mystery)%3C%2FP%3E%3CP%3E-%20I%20followed%20the%20link%20to%20Microsoft%20Learn%2C%20took%20the%20Learning%20Path%20quiz%2C%20and%20told%20it%20I%20was%20a%20beginner%20interested%20in%20Teams%20and%20Microsoft%20365.%20I%20got%20a%20suggested%20path%20full%20of%20Azure.%20The%20intro%20to%20Azure%20tells%20me%20that%20it's%20cloud%20based%20and%20can%20do%20many%20things%2C%20but%20does%20not%20in%20any%20way%20mention%20why%20my%20interest%20in%20Teams%20and%20MS%20365%20means%20I%20should%20study%20Azure.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20to%20all%20who%20tolerate%20this%20free-form%20rambling.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Greetings.

 

I'm looking for a way to programmatically create a set of folders in a document library. I have no training or background in SharePoint or Teams. I'm trying to help out my organization while I have some unoccupied time.

 

I have found several online examples of using a triggering a Flow using a Power App to create a folder - but every one I find seems to be bound to a particular SharePoint site at the time of creation, and I need to be able to execute this behavior frequently as new sites are created.

 

As per the subject line, a major frustration is the vocabulary. I'm having trouble finding rigorous definitions of Flows and Power Apps, so I might be asking for the wrong thing - or even in the wrong place. It an ideal world, the entire automated process would include or even be launched from Teams.  

 

I think the creation of a "team" in Teams creates a "site" in SharePoint, and the creation of a "channel" in the team creates a "document library" in SharePoint, which can be accessed as a "Folder" via OneDrive. I might be wrong on any or all of those points and don't know where to go to prove it one way or the other. 

 

All clues welcome. Thanks for your time.

2 Replies

Hi there, let me see if I can help a bit

 

Microsoft Teams uses SharePoint to store documents.

- When a Microsoft Team is created, a SharePoint site is created to store documents for that Team

- Each Channel in the Team has a Folder in the 'Documents' library (default library) of that SharePoint site

 

Power Automate is used to create Flows. A Flow is a workflow, that triggers either manually or when an event of some type occurs e.g. a new document is added to a Document Library, an email is recieved, a List item is created or modified etc (there are hundreds of triggers for different applications)

 

The Folder creation Flow you mention is usually associated with a specific Library. If you want to create a set of folders each time a new SharePoint Site is created then you can use a Site Design Script to run a Workflow when the Site is created. 

 

Microsoft provides lots of free training material here: Microsoft Learn | Microsoft Docs

 

I hope that helps a little.

 

 

 

I hope this helps.

@Steve Knutson 

It does help, and I thank you for it.

I am now going to express frustration, which is directed at the situation in which I find myself. and not at you - nor do I expect you to provide answers! I hope people will give answers and opinions, but I can't demand them. 

 

I also frankly welcome opinions along the lines of "You're going about this entirely the wrong way", because right now it looks to me that the answer to how to start with MS 365 is "Have a completely different background"

 

Some specifics:

 

 - is it a 'Library' called 'Documents', a 'Document Library' called 'Documents', or something else?

- Does that answer vary between SharePoint versions, and how do I determine what version I'm using?

 - are 'files' and 'Documents' interchangeable terms? Is an executable program a 'Document' if it is stored in a 'Library'? Is a 'folder' in a 'Library' exactly analogous to a folder in a folder on an NTFS filesystem?

 - I investigated Site Design Scripts and it looked promising at first - but then I found no verbs for creating folders. I did find information on getting more functionality by calling Flows (but then we're right back to figuring out how flows can be created that are not bound to Sites) and PnP (yet another mystery, which in turn depends on PowerShell Core, which is a further mystery)

- I followed the link to Microsoft Learn, took the Learning Path quiz, and told it I was a beginner interested in Teams and Microsoft 365. I got a suggested path full of Azure. The intro to Azure tells me that it's cloud based and can do many things, but does not in any way mention why my interest in Teams and MS 365 means I should study Azure.

 

Thanks to all who tolerate this free-form rambling.