blog icon indicating copy to clipboard operation
blog copied to clipboard

Create Site Script and Site Template Using Power Automate in SharePoint

Open utterances-bot opened this issue 1 year ago • 4 comments

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/

utterances-bot avatar Jul 17 '23 13:07 utterances-bot

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

17314 avatar Jul 17 '23 13:07 17314

@dips365

LuiseFreese avatar Aug 01 '23 07:08 LuiseFreese

@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" ]}}}

Mayure5h avatar Nov 07 '23 11:11 Mayure5h

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!!

Missdomiabou avatar Mar 15 '24 12:03 Missdomiabou