Site scripts and Site Design

Slides:



Advertisements
Similar presentations
Site Collection, Sites and Sub-sites
Advertisements

02 | Managing Users, Groups, and Licenses Anthony Steven | Principal Technologist, Content Master Martin Coetzer | Portfolio Architect, Microsoft.
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Microsoft ® Official Course Introducing Apps for SharePoint SharePoint Practice Microsoft SharePoint 2013.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
Build a SharePoint App with Microsoft Access. About me.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Application Packaging Standard Fundamentals
OFC302 Building Smart Document Solutions in Word & Excel Martin Sawicki Lead Program Manager.
Enabling High-Quality Printing in Web Applications
Tips and Tricks for Managing and Administering your Enterprise Project Management Server Solution Mike Joe / Karthik Chermakani Software Test Engineer.
System Center & SharePoint On- Prem Matija Blagus, Acceleratio
Microsoft ® Official Course Developing a Publishing Site for Web Content Microsoft SharePoint 2013 SharePoint Practice.
02b | Create and Configure Test Plans (2 of 2) Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence.
GOOMAZURE Mannheim, 6 th October 2015 Stamitz Saal, 2:30 – 3:15 pm.
SharePoint Online Migration API and Improvements
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
| Lausanne Successful Migration to SharePoint Planning Considerations & Migration Strategies Roberto V. Delgado Sr. Technical Solutions Professional.
Office 365: Attack of the Clones! Building reusable site templates with the Office 365 PnP Framework.
How To Build a Production-Ready SP 2013 Farm Martin Cox SharePoint / O365 Architect SharePoint 2013 BI Farm Setup Best Practices.
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Understanding and implementing the remote provision pattern in SharePoint.
A Developer’s Introduction to SharePoint 2013 Apps Ryan McIntyre, MCITP, MCPD National
Productivity Architect Meet Chris Bortlik Author, Blogger, Speaker.
SHAREPOINT ONLINE : BUILD A VOICE-CONTROLLED SHAREPOINT ADD-IN MATT MAHER.
The Ultimate SharePoint Admin Tool
SharePoint 101 – An Overview of SharePoint 2010, 2013 and Office 365
Tools and Tips for Administering Office 365
4/12/2018 5:44 PM BRK3354 Using custom themes and designs to standardize the creation of clean, functional SharePoint sites Sean Squires
Building Compliant Team Sites
Automate Custom Solutions Deployment on Office 365 and Azure
Line of Business Solutions in SharePoint Online
LMEvents SharePoint Portal How-to Guide
Upgrading from Full Trust Code to Add-in Model and SharePoint Framework Paolo Pialorsi Senior Consultant - PiaSys.com Track: DEV | Level:
Automated Azure Licencing
SharePoint Framework Extensions
Microsoft Flow and PowerApps End-to-End
Application Lifecycle Management – Best Practices for SharePoint and Office App development November 2015.
SPFx – A modern development tool for SharePoint
Build /21/2018 © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
SharePoint Online: Migration Planning to avoid Mistakes
What Is Sharepoint? Mohsen Ashkboos
Transforming SharePoint Farm Solutions to the Add-in Model
Office 365 PowerShell Jeremy Sublett.
Hybrid Search Technical Guidance.
PSC Group, LLc Office 365/SharePoint Online Migration traps and tricks
Introduction to SharePoint Framework (SPFx)
Gotcha! SharePoint Online Migration Mistakes to Avoid
Practical guide to build Modern Intranet sites with SharePoint Communication Sites Asish Padhy.
SharePoint Hub Sites and how should they be implemented
Michael Stephenson DevOps empowered by Microsoft Flow
Introduction to SharePoint Framework
TechEd /28/ :27 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
SharePoint Permissions Manager
SharePoint Online Authentication Patterns
TechEd /18/2019 2:30 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
SharePoint 2019 Overview and Use SPFx Extensions
Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS
2/27/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Microsoft Azure Managing Users & Resources with Azure Resource Manager
SharePoint Foundation 2010
Windows Forms in Visual Studio 2005: An in-depth look at key features
Erik Porter Program Manager ASP.NET Microsoft Corporation
PnP Partner Pack - Introduction
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
10/2/ :13 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
What Can It Do For You? Spira | #InflectraCon
Presentation transcript:

Site scripts and Site Design Asish Padhy

About me SharePoint, Office 365 and Azure Solutions Consultant at Kloud Solutions 12 years of experience working on SharePoint and MS Technologies I am a Consultant, Architect, Project Lead and always a Developer. Microsoft Certified Professional in SharePoint https://www.linkedin.com/in/asishpadhy https://asishposts.wordpress.com https://blog.kloud.com.au/author/asishpadhykloud/ https://twitter.com/asishpadhy - @asishpadhy

Agenda Lets do a Demo !! Site Design and Site Script Software and Tools Supported SP Artefacts Steps Overview Custom Provisioning Overview PnP Provisioning Walkthrough

Demo

Site Designs Site designs are like a template. Implement each time a new site is created to apply a consistent set of actions. You create site designs and register them in SharePoint to one of the modern template sites: the team site, or communication site. A site design can run multiple scripts. The script IDs are passed in an array, and they will run in the order listed.

Site Scripts When a site design is selected, SharePoint creates the new site, and runs site scripts for the site design. The site scripts detail the work such as creating new lists, or applying a theme. When the actions in the scripts are completed, SharePoint displays detailed results of those actions in a progress pane.

Software and Tools Site Scripts and Design Custom Provisioning PowerShell 3.0 or above SharePoint Online Management Shell ~ 16.0.7317.1200 Custom Provisioning Azure Subscription Office 365 subscription or MS Flow subscription Dev tools Azure Storage Emulator Postman

Supported Scripting Artefacts Targeted Release (formerly First Release) Options (Jan 2018) Creating a new list Applying a theme Setting a site logo Adding navigation Triggering a Microsoft flow Supported Fields The field type can be set to Text, Note, Number, Boolean, User, or DateTime.

Script Steps Install SharePoint Online Management Shell Connect to the Tenant Admin Site using Connect-SPOService Add the Site Script and get the GUID of Site Script Get-Content 'c:\scripts\site-script.json' -Raw | Add-SPOSiteScript ` -Title "Contoso theme and list“ Add the Site Design Add-SPOSiteDesign ` -Title "Contoso customer tracking" ` -WebTemplate "64" ` -SiteScripts “<script GUID from above step>" ` -Description "Creates customer list and applies standard theme"

JSON { "$schema": "schema.json", "actions": [ ... <one or more verb actions> ... ], "bindata": { }, "version": 1 };

Custom PnP Provisioning Helpful for implementations that are not supported in final release Applicable scenarios Custom web components such as SPFx extensions Complex Site Templates which need to be standardized Complex Document libs, content types that mayn’t be able to scripted by JSON schema

Custom Provisioning Steps Create an Azure Queue Storage Container Create a Microsoft Flow with Request Trigger Put an item into Azure Queue from Flow Create an Azure Function to trigger from the Queue Use the Azure Function to apply the PnP Provisioning template

Process Diagram

Tech Bites Override the default templates Add: Set-SPOSiteDesign -Identity 14241386-484e-4744-814c-afc03826d0a8 -IsDefault $true Remove: Set-SPOSiteDesign -Identity 14241386-484e-4744-814c-afc03826d0a8 -IsDefault $false Scripts can be run through REST Api also Eg. RestRequest("/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.CreateSiteScript(Title=@title)?@title='Contoso theme script'", site_script); Note: RestRequest is a custom function and not a inbuilt function

My Few thoughts Benefits Limitations Custom Provisioning for custom templates Update Status pane for progress and manual refresh Easily manageable scripts and design without custom code requirements Allow users and AD security groups to use the site design Limitations Not able to start the process in the background Need additional hosting for PnP Provisioning Components Site Design output status not linked to Provisioning process. The Site template is applied after some time. Error and Troubleshooting is distributed and might need time for fixing custom issues Office 365 groups cannot be added Default designs cannot be modified but can be overridden

Questions / Feedback