In Blogs, Mavention Make, Techblog

With the arrival of Make 5.5 it is possible to deploy modern communication sites.

Template

Deployment of a modern communication site can be down via the following template with file name “configuration.xml”. The template can also be downloaded as a zip package.

<Configurator xmlns="http://schemas.mavention.com/SharePoint/Apps/SiteConfigurator">
  <Providers>
    <Provider Assembly="Mavention.Make.Engine" Class="Mavention.Make.Engine.Providers.ModernSiteProvider" NodeName="ModernSite"></Provider>
  </Providers>
  <ModernSite Title="{title}" Url="{url}" LCID="1033" OwnerLogin="{siteowner}" ObjectAction="Create" Template="SITEPAGEPUBLISHING#0" SiteDesign="Showcase">
    <RootWeb LCID="1033" Title="{title}" Url="{url}" Description="{description}">
      <Properties>
        <Property Name="WebTemplate">Modern-Communication-Site</Property>
        <Property Name="WebTemplateVersion">1.0.0.0</Property>
      </Properties>
    </RootWeb>
  </ModernSite>
</Configurator>

Properties

The following properties can be used as metadata for the template configuration.xml.

Name: configuration.xml
Title: Modern-Communication-Site
Configuration version: 1.0.0.0
Description: Modern-Communication-Site
Start object type: Tenant
Parameters: see json

Json

{
  "d": {
    "parameters": [{
      "id": "url",
      "title": "Site URL",
      "inputType": "text",
      "required": true,
      "sampleValue": "https://tenant.sharepoint.com/sites/moderncommunicationsite"
    }, {
      "id": "title",
      "title": "Title",
      "inputType": "text",
      "required": true,
      "sampleValue": "My modern communication site"
    }, {
      "id": "description",
      "title": "Description",
      "inputType": "multiline",
      "required": false,
      "sampleValue": "Site for my Communication"
    }, {
      "id": "siteowner",
      "title": "Siteowner",
      "inputType": "text",
      "required": true,
      "sampleValue": "site-owner@tenant.onmicrosoft.com"
    }]
  }
}

Make request

An example of how the Make request could look like.

{
  "Id": "b0ca43e9-ec63-43e7-a73c-6d4f4cf26b1d",
  "RequestType": 0,
  "ConfigurationFileUrl": "https://wmeurer.sharepoint.com/sites/Make-admin/Make%20Configurations/Modern%20communication%20site/configuration.xml",
  "ConfigurationItemUrl": "https://wmeurer-admin.sharepoint.com",
  "Scope": "Tenant",
  "OverwriteIfExists": false,
  "Parameters": {
    "url": "https://wmeurer.sharepoint.com/sites/20190905-0841-modcomsite",
    "title": "My modern communication site",
    "description": "My modern communication site",
    "siteowner": "wmeurer@wmeurer.onmicrosoft.com"
  }
}

Vul je zoekopdracht in.