Skip to content

Commit fff79ca

Browse files
authored
Update site-design-json-schema.md
Updated list of template types for addSPList action
1 parent d9220d9 commit fff79ca

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

docs/declarative-customization/site-design-json-schema.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Site design JSON schema
33
description: JSON schema reference for building site designs for SharePoint.
4-
ms.date: 10/04/2018
4+
ms.date: 10/10/2018
55
---
66

77
# Site design JSON schema
@@ -31,8 +31,25 @@ Use the **createSPList** verb to create a new SharePoint list.
3131

3232
#### JSON values
3333

34-
- **listName** – The name of the list for users to identify it with.
35-
- **templateType** – Which template to apply to the list. Typically you would use value 100. Template type values are documented in [SPListTemplateType enumeration](https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx).
34+
- **listName** – The name of the list.
35+
- **templateType** – Which template to apply to the list. Typically you would use value 100. The full list of template type values are documented in [SPListTemplateType enumeration](https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx) - but the ones we currently support include:
36+
37+
| List Template Name | Enum |
38+
|--------------|---------|
39+
Generic List | 100
40+
Document Library | 101
41+
Survey | 102
42+
Links | 103
43+
Announcements | 104
44+
Contacts | 105
45+
Events | 106
46+
Tasks | 107
47+
Discussion Board | 108
48+
PictureLibrary | 109
49+
Site Pages | 119
50+
Issue Tracking | 1100
51+
52+
If you use 101 or 119 and reference the default names ("Documents" or "Site Pages") you can modify the library created with the template. See example below.
3653
- **subactions** – An array of actions that run in the order listed to create your list.
3754

3855
#### Example
@@ -46,7 +63,18 @@ Use the **createSPList** verb to create a new SharePoint list.
4663
{
4764
"verb": "setDescription",
4865
"description": "List of Customers and Orders"
49-
}
66+
}
67+
]
68+
},
69+
{
70+
"verb": "createSPList",
71+
"listName": "Documents",
72+
"templateType": 101,
73+
"subactions": [
74+
{
75+
"verb": "setDescription",
76+
"description": "This is a modified default document library"
77+
}
5078
]
5179
}
5280
```

0 commit comments

Comments
 (0)