Hi
I have a form where my employ fill when they need to create a sharepoint site with a template we have made - now we do it manually from sharepoint where we chose the template and site name and so on.
Can flow with API do this - has anyone tried ? - i know before we could create subsites (old sharepoint) but has never seen with modern sites.
Thanks
Hi @BR1984,
Yes this would be possible via the REST API methods and some Send an HTTP requests to SharePoint actions.
1. Add a Send an HTTP request to SharePoint. Use the Create method from SPSiteManager.
{
"request": {
"Title": "@{variables('SiteTitle')}",
"Url":"https://contoso.sharepoint.com/sites/@{variables('SiteTitle')}",
"Lcid": 1033,
"ShareByEmailEnabled":false,
"Classification":"Low Business Impact",
"Description":"Description",
"WebTemplate":"SITEPAGEPUBLISHING#0",
"SiteDesignId":"00000000-0000-0000-0000-000000000000",
"Owner":"dennis@contoso.onmicrosoft.com",
"WebTemplateExtensionId":"00000000-0000-0000-0000-000000000000"
}
}
2. Add another Send an HTTP request to SharePoint action. Use your new site for the site address field. Use the AddSiteDesignTaskToCurrentWeb method in the URI:
/_api/Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility.AddSiteDesignTaskToCurrentWeb
{
"siteDesignId": "@{variables('SPOSiteDesign')}"
}
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
13 | |
10 | |
9 | |
6 | |
6 |
User | Count |
---|---|
21 | |
20 | |
17 | |
8 | |
8 |