Sharepoint Site Design and Site Script using JSON

Описание к видео Sharepoint Site Design and Site Script using JSON

This video will demonstrate how to get started with the Site Designs and Site Scripts in SharePoint Online.

There are two parts to this
1) Site Script are JSON files that specify an ordered list of actions to run.
2) Site Design on other hander is a container containing all the Site Scripts.
Using the site scripts you can do things like
• Applying Theme
• Changing Logo and colour
• Adding Items in navigation
• Creating Site Columns
• Content Type
• Setting up Lists
• Triggering actions using Microsoft Flow
• ……. Many other things

For full list of features: https://docs.microsoft.com/en-us/shar...

Steps/commands in creating Site script & Site Design
------------------------------------------------------------------------------------------
a) Create the Site Script and save this as .JSON file
b) Connect to SharePoint Online Tenant
$adminSiteUrl = "https://joshi007-admin.sharepoint.com/"
$cred = Get-Credential
Connect-SPOService $adminSiteUrl -Credential $cred

c) Read the content from the JSON script file
d) Add the Script using
e) Get the ID of the Installed Site Script file
$scriptFile =$PSScriptRoot + "\customScript.json"
$scriptTitle = "Helpmecoder First Script"
$siteScriptId = (Get-Content $scriptFile -Raw | Add-SPOSiteScript -Title $scriptTitle) | Select -First 1 Id

g) Then run the powershell command to attach the Site Script file to Site Design

$designTitle = "Helpmecoder Template"
$designWebTemplate = “68”
$designDescription = "New Helpmecoder Templates"
Add-SPOSiteDesign -Title $designTitle -WebTemplate $designWebTemplate -SiteScripts $siteScriptId -Description $designDescription

For complete written extract view the blog: www.helpmecoder.com

Комментарии

Информация по комментариям в разработке