SOLVED

Create site from flow

%3CLINGO-SUB%20id%3D%22lingo-sub-666730%22%20slang%3D%22en-US%22%3ECreate%20site%20from%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-666730%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20create%20a%20site%20from%20flow%3F%20Say%20that%20a%20form%20is%20filled%20out%20and%20triggers%20a%20flow%20that%20creates%20the%20site%20based%20on%20the%20information%20in%20the%20form%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-666730%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-667080%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20site%20from%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-667080%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F140803%22%20target%3D%22_blank%22%3E%40Tonje%20Waasj%C3%B8%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EYes%20there%20is.%3CBR%20%2F%3EMake%20sure%20you%20capture%20your%20Forms%20Data%20using%20the%20forms%20Connector.%3CBR%20%2F%3EThen%20you%20can%20either%20use%20an%20HTTP%20Request%20towards%20SharePoint%20as%20shown%20in%20the%20link%20below%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.sharepointeurope.com%2Fmicrosoft-flow-create-new-sub-site-using-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.sharepointeurope.com%2Fmicrosoft-flow-create-new-sub-site-using-microsoft-flow%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EOr%20you%20can%20work%20with%20Azure%20Functions%20etc.%3CBR%20%2F%3EMore%20examples%20can%20be%20found%20here%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-provisioning-sites%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-provisioning-sites%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-668280%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20site%20from%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-668280%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20so%20much%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169371%22%20target%3D%22_blank%22%3E%40jonathan%20huysmans%3C%2FA%3E.%26nbsp%3BCan%20I%20use%20this%20first%20method%20even%20though%20it%20is%20a%20modern%20site%20(site%20collection)%20and%20not%20a%20subsite%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-670628%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20site%20from%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-670628%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F140803%22%20target%3D%22_blank%22%3E%40Tonje%20Waasj%C3%B8%3C%2FA%3E%26nbsp%3B%20no%20you%20cannot%20using%20the%20first%20method%2C%20but%20you%20can%20use%20something%20similar%20if%20you're%20working%20with%20the%20Graph%20API%20and%20using%20the%20HTTP%20Trigger%20Connector%20in%20Flow.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-provisioning-sites%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-provisioning-sites%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-670657%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20site%20from%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-670657%22%20slang%3D%22en-US%22%3EIf%20it%20is%20a%20modern%20group%20connected%20site%20you%20want%20to%20create%2C%20you%20could%20use%20the%20Flow%20Azure%20AD%20connector%20action%20'Create%20group'%2C%20to%20create%20a%20Unified%20group%20-%20that%20will%20provision%20the%20modern%20site%20collection%20for%20you.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-670667%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20site%20from%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-670667%22%20slang%3D%22en-US%22%3E%3CP%3Esomething%20like%20this%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117211i690E942ACB351BED%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Untitled.png%22%20title%3D%22Untitled.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-670916%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20site%20from%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-670916%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F506%22%20target%3D%22_blank%22%3E%40Rob%20Ellis%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20is%20there%20a%20way%20to%20also%20add%20a%20site%20design%20to%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-671237%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20site%20from%20flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-671237%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F140803%22%20target%3D%22_blank%22%3E%40Tonje%20Waasj%C3%B8%3C%2FA%3E%26nbsp%3Byes%20-%20you%20could%20use%20the%20'Send%20an%20HTTP%20request%20to%20SharePoint'%20action%2C%20as%20explained%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Frezadorrani.com%2Findex.php%2F2019%2F01%2F14%2Finvoking-unlimited-actions-with-site-design-tasks-and-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Frezadorrani.com%2Findex.php%2F2019%2F01%2F14%2Finvoking-unlimited-actions-with-site-design-tasks-and-microsoft-flow%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E(This%20assumes%20you%20have%20already%20created%20the%20required%20site%20design)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%20that%20you%20would%20only%20need%20the%20HTTP%20request%20action%20-%20not%20the%20other%20actions%20from%20his%20blog.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESomething%20like%20this%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117238iEDCB1B24913F2A81%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Untitled.png%22%20title%3D%22Untitled.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi,

 

Is there a way to create a site from flow? Say that a form is filled out and triggers a flow that creates the site based on the information in the form?

7 Replies

@Tonje Waasjø 
Yes there is.
Make sure you capture your Forms Data using the forms Connector.
Then you can either use an HTTP Request towards SharePoint as shown in the link below:
https://www.sharepointeurope.com/microsoft-flow-create-new-sub-site-using-microsoft-flow/

Or you can work with Azure Functions etc.
More examples can be found here:
https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-p...

Thanks so much @jonathan huysmans. Can I use this first method even though it is a modern site (site collection) and not a subsite?

@Tonje Waasjø  no you cannot using the first method, but you can use something similar if you're working with the Graph API and using the HTTP Trigger Connector in Flow.

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-p...

best response confirmed by Tonje Waasjø (Contributor)
Solution
If it is a modern group connected site you want to create, you could use the Flow Azure AD connector action 'Create group', to create a Unified group - that will provision the modern site collection for you.

something like this:

Untitled.png

Hi @Rob Ellis ,

 

But is there a way to also add a site design to this?

@Tonje Waasjø yes - you could use the 'Send an HTTP request to SharePoint' action, as explained here:

http://rezadorrani.com/index.php/2019/01/14/invoking-unlimited-actions-with-site-design-tasks-and-mi...

 

(This assumes you have already created the required site design)

 

Note that you would only need the HTTP request action - not the other actions from his blog.

 

Something like this:

Untitled.png