SOLVED

Create site from flow

Brass 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ø (Brass 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

1 best response

Accepted Solutions
best response confirmed by Tonje Waasjø (Brass 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.

View solution in original post