Forum Discussion
null null
Dec 13, 2018Iron Contributor
Azure function Site Design Site Script CSOM code for Site Creaion
The latest approach to modern team site is using site script and site design. However, we have a requirement where much of the execution happens as part of a web form. I was wondering if we c...
null null
Dec 14, 2018Iron Contributor
is there an example to Send HTTP Request action to apply site script .
does the Azure function supports all the cmd lets including the Applying the a site.
kevmcdonk
Dec 15, 2018MVP
Yes you can, here’s some details on my blog:
http://www.mcd79.com/2018/07/21/exploring-creating-sharepoint-teamsites-using-sitedesign-and-the-rest-api.html
The key is posting this JSON with the implicit formula value the same for every tenancy.
{ "displayName":"@{triggerBody()?['Title']}", "alias":"Project-@{triggerBody()?['ID']}", "isPublic":false, "optionalParams":{ "Description":"", "CreationOptions":["implicit_formula_292aa8a00786498a87a5ca52d9f4214a_03dac6d2-3e91-4f43-9163-953ce1bf7616}"] } }
http://www.mcd79.com/2018/07/21/exploring-creating-sharepoint-teamsites-using-sitedesign-and-the-rest-api.html
The key is posting this JSON with the implicit formula value the same for every tenancy.
{ "displayName":"@{triggerBody()?['Title']}", "alias":"Project-@{triggerBody()?['ID']}", "isPublic":false, "optionalParams":{ "Description":"", "CreationOptions":["implicit_formula_292aa8a00786498a87a5ca52d9f4214a_03dac6d2-3e91-4f43-9163-953ce1bf7616}"] } }