Jun 04 2019 02:42 AM
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?
Jun 04 2019 04:40 AM
@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...
Jun 04 2019 09:40 AM
Thanks so much @jonathan huysmans. Can I use this first method even though it is a modern site (site collection) and not a subsite?
Jun 05 2019 01:56 AM
@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...
Jun 05 2019 02:14 AM
SolutionJun 05 2019 04:32 AM
Jun 05 2019 06:43 AM - edited Jun 05 2019 06:50 AM
@Tonje Waasjø yes - you could use the 'Send an HTTP request to SharePoint' action, as explained here:
(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:
Jun 05 2019 02:14 AM
Solution