blog
blog copied to clipboard
Create Site Script and Site Template Using Power Automate in SharePoint
Create Site Script and Site Template Using Power Automate in SharePoint
Introduction Many times, the Site is already created, and we need to apply configuration in the existing site to achieve some level of consistency.
https://pnp.github.io/blog/post/create-site-script-and-site-template-using-power-automate-in/
I'm getting errors as i mentioned below:
Unexpected response from the service clientRequestId: 341d991f-74c0-45f0-854c-8757e5d77148 serviceRequestId: 9e63c7a0-b091-6000-f7df-12059c451b48
@dips365
@17314 I also has the same issue. Use below headers and body to resolve the issue:
Headers:
{ "Content-Type": "application/json; odata=verbose", "ACCEPT": "application/json; odata=verbose" }
Body:
{"info":{"Title":"Test123123","Description":"test123", "WebTemplate":"68","SiteScriptIds": {"results": [ "0d6ac655-3a0b-487d-8b6a-96f89fa9f4bd" ]}}}
thanks for this great article and ESPECIALLY to explain that sometimes the site url has no importance I couldn't find it anywhere in MS documentation. How do you find which headers to apply? in the http requests doc it is simply NOT documented!!