Sandboxed Solutions and Apps

19
Building Sandboxed Solutions with Apps #spsoslo Sonja Madsen May 31 st , 2014

description

Building SharePoint 2013 Sandboxed Solutions And Apps Agenda Development in Visual Studio with/without SharePoint 2013 Logging Cross-site collection JavaScript Apps that do not require permissions to a SharePoint site Lists, content types, page layouts deployed to SharePoint site Web parts and custom site templates .wsp package + .app package Separation of code (JavaScript) and XML definitions Fast re-deployment of code, while the lists and content types stay

Transcript of Sandboxed Solutions and Apps

Page 1: Sandboxed Solutions and Apps

Building Sandboxed Solutions with Apps #spsoslo

Sonja MadsenMay 31st, 2014

Page 2: Sandboxed Solutions and Apps

Sonja Madsen

SONJASAPPSFreelance Developer/Architect/ConsultantOver 10 years with SharePointSharePoint MVPSpeakerMicrosoft partner and vendor

@[email protected]

Page 3: Sandboxed Solutions and Apps

Oslo Copenhagen

Page 4: Sandboxed Solutions and Apps

Agenda

Development in Visual Studio without SharePoint 2013LoggingCross-site collection JavaScriptApps that do not require permissions to a SharePoint siteLists, content types, page layouts deployed to SharePoint site.wsp package + .app package

Separation of code (JavaScript) and XML definitionsFast re-deployment of code, while the lists and content types stay

Page 5: Sandboxed Solutions and Apps

Microsoft about Sandboxed solutions

All future investments will go to making the new SharePoint app model richer and more powerful. Accordingly, we recommend that all new development should use the new app model whenever possible.

Page 6: Sandboxed Solutions and Apps

Sandboxed solutions in SharePoint 2013 

We have apps, but we yet bother with sandboxed solutionsstmentsw go to making the new SharePoint app model richer and more powerful. Accordingly, we recommend that all new development should use the new app model whenever possible. 

SharePoint dev blogThe official Microsoft blog for SharePoint developers

Page 7: Sandboxed Solutions and Apps

Apps

.app package deployed/uploaded to App CatalogApps are software that run as advanced IFRAME on a SharePoint siteApps require permissions to SharePoint host webSharePoint hosted apps (JavaScript)Cloud apps (C#)Apps provide logging

Apps are not a FerrariLists, pages, and content types are NOT deployed to SharePointEnd-users can’t customize app pages

Page 8: Sandboxed Solutions and Apps

Sandboxed solutions

.wsp package deployed/uploaded to solution galleryOnly declarative XML and no-code solutions

Lists, pages, and content types ARE deployed to SharePointEnd-users CAN customize pages

Page 9: Sandboxed Solutions and Apps

Development

Sandboxed solution in Visual Studio require SharePoint on-premiseApps in Visual Studio require a SharePoint site (on-premise or Office 365)SharePoint on-premise (version 15) and Office 365 (version 16)

SharePoint 2013 Office 365

DEVELOPMENT PRODUCTION

Page 10: Sandboxed Solutions and Apps

Pizzamuffin

Page 11: Sandboxed Solutions and Apps

(Sand)boxed apps

Focus on the task at hand Use the best of two worlds

Page 12: Sandboxed Solutions and Apps

DEMO Project

Projects (Team Sites) metadataProject sitesProjects overview

Page 13: Sandboxed Solutions and Apps

SharePoint

SharePoint is perfect for this – project sites, teams, collaboration

Page 14: Sandboxed Solutions and Apps

SharePoint out-of-box

SharePoint: No project metadata, no overviewNo governance on how to call sites, where to create sites, permissionsHow to find ”my project sites" Look and feel, site templates?

Apps: we can do metadata and overview, but no project sites

Page 15: Sandboxed Solutions and Apps

Solution

Custom content type and site columnsCustom list with custom list formCode that creates sitesOverview pageSite template (standard team or project site)

Page 16: Sandboxed Solutions and Apps

DEMO DEV INTRANET

DEVELOPMENT

Page 17: Sandboxed Solutions and Apps

DEMO DEV INTRANET

DEVELOPMENT

APP WSP

Page 18: Sandboxed Solutions and Apps

The best of two worlds

Development in Visual Studio without SharePoint 2013LoggingCross-site collection JavaScriptApps that do not require permissions to a SharePoint siteLists, content types, page layouts deployed to SharePoint site.wsp package + .app package

Separation of code (JavaScript) and XML definitionsFast re-deployment of code, while the lists and content types stay

Page 19: Sandboxed Solutions and Apps

Platinum

SharePint

Raffle

Platinum

Gold

Thanks to our Sponsors!