SharePoint Workflow. SharePoint 2010 and 2019 Workflow - VirtoSoftware

Create SharePoint site collection

This activity creates a new top-level Web site in the current web application.

Note: By defining managed paths, you can specify which paths in the URL namespace of a Web application are used for site collections. You can specify that one site collection or more than one site collection exists at a specified path. For example, an explicit path of hr indicates that the URL http://server/hr is a site collection, whereas a wildcard path of "sites" indicates that child URLs of http://server/sites/, such as server/sites/team, are site collections. To add a new URL Path go to the Define Managed Paths page (Central Administration > Application Management > Define Managed Paths).

SharePoint Workflow Designer Phrase

Create a new site collection titled this title at this url, using this template, description this description.

Site collection administrator: primary and secondary.


Parameter Description
this title The title of the new site. The maximum length is 255 characters.
this url The complete URL where the site should be created. http://server01/sites/MySitex. To add a new URL Path go to the Define Managed Paths page (Central Administration > Application Management > Define Managed Paths).
this template Optional. Specifies the type of template to be used by the newly created site. If you do not specify a template to use, the owner can choose a template when he or she first browses to the site. The value may be be in the form: - name#configuration. If you do not specify the configuration, (for example, STS) configuration 0 is the default (for example, STS#0). - template title from Site Template Gallery (for example, “Example template”). - template file name from Site Template Gallery (for example, ExampleTemplate.stp).
this description Optional. Description of the new site.
Primary Specify the administrator for this Web site collection.
Secondary Optional. Specify the secondary administrator for this Web site collection.

Note: The template should be uploaded to Site Template Gallery (see below) or added to the global templates list by using the STSADM -o AddTemplate command ( ).

Valid values available in a default installation include:

  • STS#0: Team Site

  • STS#1: Blank Site

  • STS#2: Document Workspace

  • MPS#0: Basic Meeting Workspace

  • MPS#1: Blank Meeting Workspace

  • MPS#2: Decision Meeting Workspace

  • MPS#3: Social Meeting Workspace

  • MPS#4: Multipage Meeting Workspace

  • BLOG#0: Blog

  • WIKI#0: Wiki Site

Upload and use a site template (.stp) in SharePoint

Log on to SharePoint as an administrator to the site collection where you want to upload the template. Make sure to browse to the top level site of the site collection.

  • Click the Site Actions button → Site Settings → Modify All Site Settings

  • Go to the Galleries section and select Site templates.

  • On the Site Template Gallery page, select ‘Upload’ or ‘Upload multiple documents’

  • On the Upload Template: Site Template Gallery page, browse to the .stp file and click OK to upload the file.

  • You have now succesfully uploaded the file and are ready to use it.

Enumerates all site templates with PowerShell


$globalAdmin = New-Object –TypeName "Microsoft.SharePoint.Administration.SPGlobalAdmin";

$webTemplates = $globalAdmin.VirtualServers[0].GetWebTemplates("1033");

$webTemplates | Select Name, Description;