Provision SPFx Web Parts to Classic Sites

Similar documents
SharePoint Framework. SPFx. Vladimir

Modern SharePoint and Office 365 Development

Presented by. Dheepa Iyer Managing Consultant. Commissioned for. Reston SharePoint User Group. SharePoint Framework. May 2017

The Great SharePoint 2016/2013 Adventure for Developers

30 th September 2017 Milan

SHAREPOINT DEVELOPMENT FOR 2016/2013

THE GREAT SHAREPOINT ADVENTURE 2016

55249: Developing with the SharePoint Framework Duration: 05 days

Microsoft SharePoint Server

Developing Microsoft SharePoint Server 2013 Core Solutions

"Charting the Course... MOC A: Developing with the SharePoint Framework. Course Summary

SharePoint 20488: Developing Microsoft SharePoint Server 2013 Core Solutions. Upcoming Dates. Course Description. Course Outline

Developing Microsoft SharePoint Server 2013 Core Solutions

COURSE 20488B: DEVELOPING MICROSOFT SHAREPOINT SERVER 2013 CORE SOLUTIONS

Course 20488A: Developing Microsoft SharePoint Server 2013 Core Solutions

Course Outline: MS20488 Developing Microsoft SharePoint Server 2013 Core Solutions

Developing Microsoft SharePoint Server 2013 Core Solutions

Developing Microsoft SharePoint Server 2013 Core Solutions

Introduction to the SharePoint Framework Bob German Principal Architect - BlueMetal. An Insight company

MS 20488: Developing Microsoft SharePoint Server 2013 Core Solutions Duration: 5 Days Method: Instructor-Led

Developing Microsoft SharePoint Server 2013 Core Solutions Course Contact Hours

Course 20488: Developing Microsoft SharePoint Server 2013 Core Solutions

DEVELOING MICROSOFT SHAREPOINT SERVER 2013 CORE SOLUTIONS

"Charting the Course... MOC B Developing Microsoft SharePoint Server 2013 Core Solutions. Course Summary

TSInfo Technologies (OPC) Pvt Ltd

COURSE OUTLINE MOC 20488: DEVELOPING MICROSOFT SHAREPOINT SERVER 2013 CORE SOLUTIONS

81225 &SSWSSS Call Us SharePoint 2010 S:

SharePoint 2010 Central Administration/Configuration Training

20488: Developing Microsoft SharePoint Server 2013 Core Solutions

SharePoint Online Office 365 Developer Course Content

Microsoft Developing Microsoft SharePoint Server 2013 Core Solutions

20488: Developing Microsoft SharePoint Server 2013 Core Solutions

: 20488B: Customized Developing Microsoft SharePoint Server

Hands-On Lab. Lab 13: Developing Sandboxed Solutions for Web Parts. Lab version: Last updated: 2/23/2011

MICROSOFT EXAM QUESTIONS & ANSWERS

MOC 20416B: Implementing Desktop Application Environments

August, HPE Propel Microservices & Jumpstart

20488B: Developing Microsoft SharePoint Server 2013 Core Solutions

MS_ Developing Microsoft SharePoint Server 2013 Core Solutions.

Finally JavaScript Is Easy, with Oracle JET! Geertjan Wielenga Product Manager Oracle Developer Tools

6 th October 2018 Milan

> Introduction to Office Extensibility. > Microsoft Graph and Excel Integration. > Office Add-ins and Excel Extensibility

Lightning Conductor Web Part 2013 Manual 2 Last update: October 24, 2014 Lightning Tools

SHAREPOINT 2010 OVERVIEW FOR DEVELOPERS RAI UMAIR SHAREPOINT MENTOR MAVENTOR

TS: Microsoft SharePoint 2010, Application Development

Understanding SharePoint Framework Extensions

Welcome. Quick Introductions

EXAM Microsoft SharePoint 2010, Application Development. Buy Full Product.

Installation & User Guide

This confirms that Ricky T has completed the following courses:

Developing for SharePoint Regina Technology Community May 2011

Ten interesting features of Google s Angular Project

KWizCom Custom Actions

SharePoint List Custom Actions Feature

1 Prepare the environments

Michael Wells Microsoft Specialist, Dell EMC. SQL DBaaS on Microsoft Azure Stack

Angular 2 Programming

POWER BI BOOTCAMP. COURSE INCLUDES: 4-days of instructor led discussion, Hands-on Office labs and ebook.

BindTuning Installations Instructions, Setup Guide. RECAP Setup Guide

Frontend UI Training. Whats App :

TECHNICAL SESSIONS OFFICE DEVELOPMENT

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

Administer System Center Configuration Manager for Desktop Support

Manual Visual Studio 2010 Web Developer Tools 2012 Professional

Page 1. Peers Technologies Pvt. Ltd. Course Brochure. Share Point 2007

DEVELOPING MICROSOFT SHAREPOINT SERVER 2013 ADVANCED SOLUTIONS. Course: 20489A; Duration: 5 Days; Instructor-led

DocAve. Release Notes. Governance Automation Online. Service Pack 9, Cumulative Update 6

Number: Passing Score: 800 Time Limit: 120 min File Version:

SHAREPOINT 2013 DEVELOPMENT

AvePoint Cloud Governance. Release Notes

SharePoint 2013 Central Administration

Configuring and Deploying a Private Cloud DURATION: Days

SHAREPOINT 2010 FOLDERS IN DOCUMENT LIBRARIES

KWizCom Corporation. Clipboard Manager for SharePoint. User Guide

Developing Microsoft SharePoint Server 2013 Advanced Solutions

Open Source Library Developer & IT Pro

POWER BI DEVELOPER BOOTCAMP

SHAREPOINT-2016 Syllabus

AvePoint Cloud Governance. Release Notes

Sharepoint Introduction. Module-1: Working on Lists. Module-2: Predefined Lists and Libraries

Studio 2010 Command Prompt

Tasktop Sync - Cheat Sheet

Sharepoint 2010 How Manually Update Web Analytics Workflows Timer Job

Course 55197A: Microsoft SharePoint Server 2016 for the Site Owner/Power User

Configuring and Operating a Hybrid Cloud with Microsoft Azure Stack

SHAREPOINT VITALS SETUP GUIDE

KWizCom Corporation. SharePoint Repeating Rows Field Type. User Guide

Index. Chaminda Chandrasekara 2017 C. Chandrasekara, Beginning Build and Release Management with TFS 2017 and VSTS, DOI /

Magento 2 Certified Professional Developer. Exam Study Guide

SharePoint Development Web Development Generate from Usage. Cloud Development Windows Development Office Development

NE Administering System Center Configuration Manager and Intune

LMS 365 Quiz Builder Add-in Installation Guide. Version 2.3

OFFICE SERVICES AND SERVERS MVP Independent SharePoint Consultant, SharePoint MVP and Top 25 SharePoint Influencer Worldwide.

PRO: Designing and Developing Microsoft SharePoint 2010 Applications

6 th October 2018 Milan

SharePoint Online for Administrators

AvePoint Governance Automation 2. Release Notes

Razvoj za SharePoint Predavatelj: Uroš Žunič Podjetje: Kompas Xnet

Microsoft Advanced Solutions of Microsoft SharePoint Server

BindTuning Installations Instructions, Setup Guide. Invent Setup Guide

Transcription:

https://rasper87.wordpress.com Provision SPFx Web Parts to Classic Sites #THRIVEITCONF

SharePoint Framework (SPFx) An application framework used to build and extend modern experiences in SharePoint

SharePoint Framework (SPFx) Good Modern client-side development (no more script injection) Works in Classic and Modern Pages / On-Prem and Online Local Workbench for development and debugging Mobile friendly Bad Change is hard if you are.net developer You have to learn new skills

SharePoint Framework (SPFx) Skills you need to embrace Javascript/HTML/CSS TypeScript React, Angular, KnockoutJS Node.js, NPM, Yeoman, Gulp Office UI Fabric (Front-end visual framework) Etc. Visual Studio Code

SharePoint Framework (SPFx) Supported SP versions SP 2016 Feature Pack 2 SP 2019 SP Online Supported SPFx versions SP 2016 FP2 SPFx 1.1 (Web Parts Only) SP 2019 SPFx 1.4 (Web Parts & Extensions) SP Online SPFx 1.7 - latest (Web Parts & Extensions and more ) Latest SPFx 1.7 features: - Dynamic Data - Official teams tabs support - Full page apps -

Situation in Slovenia (our customers) SharePoint 2003 SharePoint 2007 SharePoint 2010 SharePoint 2013 SharePoint 2016 SharePoint 2019 SharePoint Online.NET SPFx

DEMO Provision SPFx Web Part to SP (by hand)

Provision SPFx Web Part to SP (by hand) Four step Provisioning process: Copy SPFx Web Part Assets to local CDN Copy SPFx Web Part Package to App Catalog Add SPFx App to Web Add SPFx Web Part to Page

Provision SPFx to SP (globally) ALM API Only for SharePoint Online & 2019 No way to programmatically provisioning Apps to SP2016 REST API: /_api/web/tenantappcatalog/add(overwrite=true, url='test.txt ) PnP Provisioning Engine Leverages the ALM API PnP Core Library web.getappcatalog(); PnP PowerShell Get-PnPTenantAppCatalogUrl https://aka.ms/sppnp Available operations: - Upload a package to the AppCatalog - Install an app - Deploy/Trust an app - Upgrade an app - Uninstall an app - Retract an app - Remove an app - List available apps

Provision SPFx to SP (2016 FP2) What we have OOTB for SP 2016 On-Prem? Nothing. What now any workaround? Upload.sppkg file into App Catalog -> Module Element + Feature Event Receiver Upload assets to local CDN Library -> Module Element Install SPFx App to specific SPWeb -> problem Add SPFx Web Part to Page ->? Any workaround?

Provision SPFx to SP (2016 FP2) LoadAndInstallApp -> app deployment (from SP 2013 era) but doesn t work for SPFx really? Make.sppkg file compatible with LoadAndInstallApp method Modifications to AppManifest.xml within.sppkg Method only works on Root Web of specific Site Collection (no-go with Sub-Webs) Error: A different version of this App is already installed with the same version number. Any workaround?

Provision SPFx to SP (2016 FP2) SPApp class inside Microsoft.SharePoint.dll Internal method CreateAppUsingPackageMetadata Get SPApp object of specific SPFx Web Part from App Catalog Public method CreateAppInstance Create instance of SPApp (SPAppInstance) to specific SPWeb Call Install() to install it

Provision SPFx to SP (2016 FP2) Add this code into Web-Scope Feature Event Receiver -> FeatureActivated Works fine with manually activation via Manage Site Features What about when we include this feature into Web Template -> problem We create Site Collection inside of Central Administration -> code runs under System Account Error: The System Account cannot perform this action. RunWithElevatedPrivileges (impersonation) Person with Site Admin permission -> same error Person with less than Site Admin permission -> Error: Only site administrators may install or uninstall Apps. Any workaround?

Provision SPFx to SP (2016 FP2) SPAppAllowRunAsSystemAccountScope inside of SPSecurity class (from Microsoft.SharePoint.dll) Disposable object It set AllowRunAsSystemAccount == true Any additional problems?

Provision SPFx to SP (2016 FP2) CreateAppUsingPackageMetadata throw exception if SPFx App is already installed on any SPWeb of current SPSite Error code: -2146232828 Go throught all SPWebs -> find first SPAppInstance of specific SPApp Create new SPAppInstance from this one Any additional problems? No, finally!

DEMO Provision SPFx Web Part to SP2016

Demo steps Include SPFx Assets & Package inside of WSP Deploy SPFx Web Part to SharePoint Server 2016 App Catalog with WSP Install SPFx Web Part to SharePoint Site/Web inside Feature Include SPFx Web Part inside of Web Template Run all SPFx Gulp tasks with one custom PowerShell function (additional) Dynamic External JS References in SPFx Web Parts (additional)

THANK YOU gasper.rupnik@kompas-xnet.si @RaspeR87 https://rasper87.wordpress.com