Skip to content

Commit 2dbb080

Browse files
authored
Update site-design-overview.md
updated createsitescript rest call example w/ site script description; noted 30 action site script limit
1 parent 6e3084a commit 2dbb080

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/declarative-customization/site-design-overview.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Site scripts are JSON files that specify an ordered list of actions to run when
7777
},
7878
{
7979
"verb": "addSPField",
80-
"fieldType": "User",
80+
"fieldType": "User",
8181
"displayName": "Contact",
8282
"addToDefaultView": true,
8383
"isRequired": true
@@ -102,12 +102,11 @@ Available actions include:
102102

103103
- Creating a new list
104104
- Applying a theme
105-
- Creating a page
106105
- Setting a site logo
107106
- Adding navigation
108107
- Triggering a Microsoft flow
109108

110-
Site scripts can be run again on the same site after provisioning. This can only be done programmatically. Site scripts are non-destructive, so when they run again, they ensure that the site matches the configuration in the script. For example, if the site already has a list with the same name that the site script is creating, the site script will only add missing fields to the existing list.
109+
Site scripts can be run again on the same site after provisioning. This can only be done programmatically. Site scripts are non-destructive, so when they run again, they ensure that the site matches the configuration in the script. For example, if the site already has a list with the same name that the site script is creating, the site script will only add missing fields to the existing list. Also, please note that site scripts are limited to 30 cumulative actions (across one or more scripts that may be called in a site design).
111110

112111
## Using PowerShell or REST to work with site designs and site scripts
113112

@@ -184,7 +183,7 @@ var site_script = {
184183
"version": 1
185184
};
186185
187-
RestRequest("/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.CreateSiteScript(Title=@title)?@title='Contoso theme and list'", site_script);
186+
RestRequest("/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.CreateSiteScript(Title=@title,Description=@desc)?@title='Contoso theme and list'&@desc='this script creates a list named customer tracking and sets the contoso explorers company theme'", site_script);
188187
189188
RestRequest("/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.CreateSiteDesign",{
190189
info:{

0 commit comments

Comments
 (0)