Create SharePoint Site

This plug-in creates a new SharePoint site at the specified URL using the specified template.

Value Pair

Description

description

The description of the site.

inherit

Whether or not to inherit from the parent site.

loginnames

XPath to a repeating section in the form that contains the login names of the users to add to the site.

path

The full path of the URL to create.

permissions

XPath to a repeating section in the form that contains the permission sets for the corresponding users.

sitecollectionurl

The URL of the site collection in which to create the new SharePoint site.

template

The name of the template to use in instantiating the site.

title

The title of the site.

Example

  1. sitecollectionurl - http://svtest
  2. path - /sites/work/projecta
  3. template - STS#0
  4. inherit - false
  5. title - Project A Workplace
  6. description - Site for working on Project A.
  7. loginames - [//my:LoginName]
  8. permissions - [//my:Permission]

This will create a new site at the server-relative URL /sites/work/projecta contained in the site collection at http://svtest. It will use the template STS#0 (a standard SharePoint template; a list of these templates can be found in the Microsoft documentation) in creating the site.

The site will not inherit permissions from the parent with a title of "Project A Workplace" and description "Site for working on Project A." The XPath //my:LoginName will be used to query the form data to retrieve the login names of the people who should have access to the new site, and the XPath //my:Permission will be queried to get the corresponding permission levels for the users.