Last active
September 19, 2018 12:40
-
-
Save joannecklein/6b438fe20b6e8f063c53cf43684452bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "schema.json", | |
"actions": [ | |
{ | |
"verb": "createSiteColumn", | |
"fieldType": "Text", | |
"internalName": "ProjectName", | |
"displayName": "Project Name", | |
"isRequired": true, | |
"group": "~Project Columns" | |
}, | |
{ | |
"verb": "createSiteColumnXml", | |
"schemaXml": "<Field Type=\"Choice\" DisplayName=\"Document Type\" Required=\"FALSE\" Format=\"Dropdown\" StaticName=\"DocumentType\" Name=\"DocumentType\"><Default>General Doc</Default><CHOICES><CHOICE>General Doc</CHOICE><CHOICE>Requirements</CHOICE><CHOICE>Design</CHOICE><CHOICE>TestPlan</CHOICE><CHOICE>Project Charter</CHOICE></CHOICES></Field>", | |
"group": "~Project Columns" | |
}, | |
{ | |
"verb": "createContentType", | |
"name": "Project Document", | |
"description": "Custom project document", | |
"parentName": "Document", | |
"hidden": false, | |
"subactions": | |
[ | |
{ | |
"verb": "addSiteColumn", | |
"internalName": "ProjectName" | |
}, | |
{ | |
"verb": "addSiteColumn", | |
"internalName": "DocumentType" | |
} | |
] | |
}, | |
{ | |
"verb": "createSPList", | |
"listName": "Project Documents", | |
"templateType": 101, | |
"subactions": [ | |
{ | |
"verb": "SetDescription", | |
"description": "Project Document library" | |
}, | |
{ | |
"verb": "addContentType", | |
"name": "Project Document" | |
}, | |
{ | |
"verb": "removeContentType", | |
"name": "Document" | |
} | |
] | |
}, | |
{ | |
"verb": "addNavLink", | |
"url": "/Project Documents", | |
"displayName": "Project Documents", | |
"isWebRelative": true | |
}, | |
{ | |
"verb": "removeNavLink", | |
"displayName": "Documents", | |
"isWebRelative": true | |
}, | |
{ | |
"verb": "removeNavLink", | |
"displayName": "Pages", | |
"isWebRelative": true | |
}, | |
{ | |
"verb": "removeNavLink", | |
"displayName": "Site contents", | |
"isWebRelative": true | |
}, | |
{ | |
"verb": "joinHubSite", | |
"hubSiteId": "Paste the Hub ID here" | |
}, | |
{ | |
"verb": "addPrincipalToSPGroup", | |
"principal": "UserOrGroupNameGoesHere", | |
"group": "Visitors" | |
}, | |
{ | |
"verb": "triggerFlow", | |
"url": "Paste the workflow trigger URL here", | |
"name": "Record site creation event", | |
"parameters": { | |
"event":"site creation", | |
"product":"SharePoint Online" | |
} | |
} | |
], | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment