Тёмный

Sharepoint Site Design and Site Script using JSON 

helpmecoder
Подписаться 9 тыс.
Просмотров 15 тыс.
50% 1

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: docs.microsoft...
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 = "joshi007-admin..."
$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

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@ArohShukla
@ArohShukla 5 лет назад
Extremely useful video Hemant. Thank you for sharing!
@helpmecoder
@helpmecoder 5 лет назад
Thanks for taking out time to write these kind words of appreciation. 👍
@M365_Minion
@M365_Minion 3 года назад
Brilliant video! Far more useful than Microsoft's assume everyone knowns what they are doing videos. Well done.
@helpmecoder
@helpmecoder 3 года назад
Wow, thanks!
@devingeorge4481
@devingeorge4481 Месяц назад
I appreciate the detail! What if I want to copy an existing site layout design and create a JSON file then save it as a site template? I attempted to extract the XML file and create the site template that way however it just copys the blank site template and not the design of the site I want to use.
@MAT23154
@MAT23154 2 года назад
Hey, thanks for your videos, they are very helpful! If I want that every new site already starts with a selected webpart... which way to go? Could you plese point me to the right direction? Thanks again.
@arifulsohag1782
@arifulsohag1782 3 года назад
I love your all video. This what I am looking. Do you provide any courses?
@helpmecoder
@helpmecoder 3 года назад
Thanks for your feedback
@dalthiara
@dalthiara 5 лет назад
Hi Hemant, great content and well presented, easy to follow. Subscribed to the channel. Please keep posting new content. Well done
@helpmecoder
@helpmecoder 5 лет назад
Thanks for taking out time to provide your feedback. Will try my best to keep coming up with awesome content. 🙏
@berndkroon5147
@berndkroon5147 4 года назад
Really nice explanation!!
@helpmecoder
@helpmecoder 4 года назад
Glad you liked it and thanks for your feedback
@ryanlinsangan6760
@ryanlinsangan6760 4 года назад
Awesome, very helpful.
@helpmecoder
@helpmecoder 4 года назад
Thanks Ryan for your feedback
@stephencoates544
@stephencoates544 4 года назад
Thanks for this I like it. I have multiple complex lists - using calculations and look ups etc Is there a way to generate the script code for lists that already exists rather than writing every line of code for all the fields?
@helpmecoder
@helpmecoder 4 года назад
You can export the existing list schema using the command $listSchema = Get-SPOSiteScriptFromList -ListUrl YourSPPortal.com/Lists/testlist attach this extracted schema to site script $siteScript = Add-SPOSiteScript -Title "Test List" -Content $listSchema Then create the site design out of it and proceed as normal
@metalsnake00
@metalsnake00 4 года назад
i have site i have created already, with all design, features, themes, logo, list and so on, so is there a way to extract already existing design and apply it to other tenant?
@helpmecoder
@helpmecoder 4 года назад
Yes you can do that with the command Get-SPOSiteScriptFromWeb -WebUrl -IncludeTheme -IncludeBranding -IncludeSiteExternalSharingCapability -IncludeRegionalSettings -IncludeLinksToExportedItems Now to the new tenant you need to install the script using powershell and then get ID of it to attach it to the tenant site design . This has been explained in the video and the commands can be taken from description. I hope this helps.
@metalsnake00
@metalsnake00 4 года назад
@@helpmecoder thank you so much for replaying on my message, i will try it and see if it works
@stephenjohnmorley
@stephenjohnmorley 2 года назад
@@helpmecoderHi, I tried this and it didnt not save any of the site settings in the site i wanted to use as a template base. Not even the logo or links
@rayromych5534
@rayromych5534 4 года назад
Would be nice to have links to all shown websites (Site design JSON Schema etc)
@helpmecoder
@helpmecoder 4 года назад
Thanks for the feedback , i will include the links.
@kumawatshekhar71
@kumawatshekhar71 3 года назад
nice one
@zainrana9072
@zainrana9072 4 года назад
I'm having some issues please Guide me
@mehtabidreesi7942
@mehtabidreesi7942 Год назад
at 6:45 you asked about if you don't know about theme I will tell you how to get it in next video tell us how
@varshashirgaokar9051
@varshashirgaokar9051 3 года назад
Hi I want to design share point landing page
Далее
SharePoint Permissions - Full Tutorial with Demo
19:56
Mastering Custom JSON List Formatting In SharePoint
23:20
Building a Modern Intranet with SharePoint Online
58:14
PowerApps using Sharepoint list - PowerApps Tutorial
16:16