SlideShare a Scribd company logo
Do’s and Dont’s for Office 365
Development
Chris O’Brien - MVP
Independent Consultant
Head of Development, Content and
Code
www.sharepointnutsandbolts.com
@ChrisO_Brien
http://cob-sp.com/COBLinkedIn
About me
Agenda
• The Office 365 dev landscape – things you
CAN’T do
• The DON’T list:
• 4 fundamental don’ts
• 4 “more debatable” don’ts 
• The DO list
• Remote provisioning
• Office 365 apps/auth over SharePoint Add-ins
• App script parts
• Summary
Office 365 dev – things you CAN’T do
Farm solutions (WSPs)
• No feature receivers
• No timer jobs
• No event receivers
Non-sandbox SharePoint API code
• No custom field controls
• No site definitions
• Etc..
The following are 100% NOT SUPPORTED in Office 365:
Fundamental “don’ts”
Don’t #1 - don't use the sandbox APIs
Why not:
• Microsoft are likely to disable server-
side code in SharePoint Online
What you CAN do:
• Use client-side code (e.g. JavaScript)
• Use remote server-side code (e.g. the
add-in model)
Don’t #2 - don't customize the suite bar
Why not:
• Microsoft need to “own” this – new functionality may appear
here
• JavaScript/CSS hacks may conflict with Microsoft changes
• Consistency across tenants
What you CAN do:
• Add a logo/
background image
• Change the color via Office 365 themes
Don’t #3 - don't rely on Office 365 HTML*
Why not:
• Microsoft need to change this
from time to time
• It is NOT an API or contract
What you CAN do:
• Provide your own HTML – master
page, layouts, display templates
etc.
(*or at least, be VERY careful!)
Don’t #4 - don't customize ODFB sites
Why not:
• Microsoft need to “own” this – new
functionality may appear here
• Now considered part of the service,
like Delve
• Becoming more like a doc lib, rather
than full site
Guidance webcast:
• http://cob-sp.com/1Oz2Vv2
Fundamental
“don’ts” summary:
1. Don’t use the sandbox APIs
2. Don’t customize the suite
bar
3. Don’t rely on Office 365
HTML
4. Don’t customize ODFB sites
Do’s:
1. Do use Office 365 themes/suite
bar options
2. Do use remote APIs:
1. CSOM (.NET)
2. JSOM
3. REST
4. Android/iOS
More controversial don’ts
1. Don’t use a custom master page
2. Don’t use a custom web
template
3. Don’t use Features to provision
fields and content types
..also:
1. Don’t use web parts
More debatable/controversial
don’ts:
#1 Don’t use a
custom master page
Don’t use a custom master page!
WHAT??
• This is the recommended approach to branding since
SharePoint 2007!
• Easy way to control all pages in a site (e.g. global
navigation, footer etc.)
Why not:
• Microsoft will update OOTB master pages with new
functionality
Office 365 updates and your master page
Time
OOTB
Master
Custom Master<< Copy >>
Service updates for introducing new version of
the out of the box master page with some new
capabilities or bug fixes.
Significant differences on the outcome unless custom
master page been updated during the releases.
New custom master page is created by
copying oob master or starting from scratch
using oob master as the reference
master
Seattle.master
Version 1.0 master
Seattle.master
Version 2.0 master
Seattle.master
Version 3.0
master
contoso.master
Version 1.0 master
contoso.master
Version 1.0 master
contoso.master
Version 1.0
Do's and don'ts for Office 365 development
Untested updates can be dangerous!
The scenario:
• Intranet with 50,000 users
• OOTB master page, with some custom
CSS/JavaScript
Untested O365 change = broken intranet
Strategies for dealing with this
1. Explicitly CHOOSE to use a custom master
page – SOME protection?
N.B. This involves “paying the
customization tax” – you need to copy
any Microsoft updates
2. Always have a First Release-enabled
tenant
Deciding whether to use a custom master
page
Other factors:
• Responsive design?
• Can CSS achieve the requirements?
More debatable/controversial
don’ts:
#2 Don’t use custom
WebTemplates
Don’t use custom WebTemplates!
Why not:
• It’s the same deal as custom master pages –
Microsoft will want to update e.g. the team
site definition
Maintenance challenge with web templates
Time
Team Site
Custom Web Template
<xml>
onet.xml
X feature activations
<xml>
onet.xml
X feature activations <xml>
onet.xml
X feature activations +2 <xml>
onet.xml
X feature activations +4
<xml>
onet.xml
X feature activations <xml>
onet.xml
X feature activations
<< Copy >>
More debatable/controversial
don’ts:
#3 Don’t use Features
to provision
fields/content types
etc.
Don’t use Features for provisioning
Why not:
• Provisioned artifacts have
dependency on Feature XML (in
content database)
• Microsoft don’t like this for
running Office 365
BUT:
• Is that the implementer’s
problem? 
Do’s:
#1 Do use remote
provisioning
Remote provisioning – the alternative to
WebTemplates
• Better APIs for remote provisioning now
• OfficeDev Patterns and Practices site provisioning framework:
• XML for defining custom site “template” definition
• Remote code (PowerShell or .NET) to create sites – Azure WebJob
• Full engine/framework for creating sites from a SharePoint list item
• Ability to “extract template” from an existing site
Custom sites via remote
provisioning in Office 365
DEMO
Do’s:
#2 Use Office 365
apps in preference
to SharePoint Add-
ins
Using Office 365 APIs
• SharePoint add-in authentication sucks!
• Less and less reason to build a SharePoint add-in. Consider:
• SP add-ins need to be installed to sites
• SP add-ins must be accessed from SharePoint – not standalone
• Office 365 app authentication can now talk to SharePoint. Technique:
Authenticate to
Office 365/Azure
AD
Get access token
Use token with
CSOM/REST
Office 365
app? SharePoint
Add-in?
Options for Azure AD auth
“User + app” authentication
• Authorization Code Grant Flow
• Implicit Grant Flow
“App-only” authentication
• Client Credentials Grant Flow
Using an Office 365 auth
token to talk to SharePoint
DEMO
More debatable/controversial
don’ts:
#4 Don’t use web
parts
Do’s:
#3 Use app script
parts (cloud-friendly
web parts)
App script parts
Web part definition
= Script Editor Web
Part + custom
JavaScript
Output a DIV onto
page
JavaScript injects
content into DIV
App script parts (modern
web parts)
DEMO
App script parts - advanced
• Sometimes you need “web part properties”
• This involves:
• Storing the data
• Presenting the UI
• Options:
• Persist somewhere custom
• Persist to Script Editor config (hidden field) – see
https://olescorner.wordpress.com/2015/06/04/49
Do’s:
#4 Create multiple
tenancies (if doing
development)
Using multiple Office 365 tenancies for
dev/test/prod
• YES it costs more!
• BUT, several SharePoint elements are global:
• Change something here whilst developing in a tenant = changed for
everyone!
• TIPS – use small number of users, and maybe lower plan level
Summary – what to take away
• BUT, consider whether guidance is 100% appropriate for your
case
• A custom master page and/or web template is NOT crazy for a
publishing intranet!
(But it might be for collaboration sites)
Old approach Consider..
Custom master page Office 365 themes. Custom CSS file.
Web templates/features for provisioning Remote provisioning
Web part App script part
Resources
• Training section on
http://dev.office.com
• PnP remote provisioning solution -
webcast
• http://cob-sp.com/1MjPJ7u
• Avoid customizing ODFB sites – webcast:
• http://cob-sp.com/1Oz2Vv2
• App script web part with properties:
• http://cob-sp.com/1kkloi8
• (By Ole Martin Pettersen)
Hackathon
WINNING TEAM GETS
THANK YOU!
ANY QUESTIONS?
Chris O’Brien
www.sharepointnutsandbolts.com

More Related Content

PPTX
Application Lifecycle Management for Office 365 development
PPTX
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
PPTX
Chris O'Brien - Comparing SharePoint add-ins (apps) with Office 365 apps
PPTX
SharePoint Framework -The future of SharePoint/ Office 365 developer ecosystem.
PPTX
Chris O'Brien - Introduction to the SharePoint Framework for developers
PPTX
Chris OBrien - Weaving Enterprise Solutions into Office Products
PPTX
COB - Azure Functions for Office 365 developers
PPTX
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Application Lifecycle Management for Office 365 development
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris O'Brien - Comparing SharePoint add-ins (apps) with Office 365 apps
SharePoint Framework -The future of SharePoint/ Office 365 developer ecosystem.
Chris O'Brien - Introduction to the SharePoint Framework for developers
Chris OBrien - Weaving Enterprise Solutions into Office Products
COB - Azure Functions for Office 365 developers
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference

What's hot (20)

PPTX
Activate bots within SharePoint Framework
PPTX
SharePoint Framework - Developer Preview
PPTX
Chris O'Brien - Best bits of Azure for Office 365/SharePoint developers
PPTX
Chris O'Brien - Modern SharePoint development: techniques for moving code off...
PPTX
TypeScript and SharePoint Framework
PDF
SPUnite17 SPFx Extensions
PPTX
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
PPTX
Application innovation & Developer Productivity
PPTX
SharePoint 2010 - InfoPath, Workflow
PDF
SPUnite17 Timer Jobs Event Handlers
PPTX
Get started with building native mobile apps interacting with SharePoint
PPTX
SharePoint Development with the SharePoint Framework
PPTX
Custom Applications - What, When, and Why
PPTX
SharePoint for ASP.Net Developers
PPTX
Modern SharePoint Development using Visual Studio Code
PPTX
Getting Started with SharePoint Development
PDF
ECS19 - Michael Greth - Best Practice with Company Video on Microsoft Stream
PPTX
ECS19 Bert Jansen - Modernizing your existing sites
PPTX
How we built nothingbutsharepoint.com on sharepoint 2010
PPTX
Chris O'Brien - Building AI into Power Platform solutions
Activate bots within SharePoint Framework
SharePoint Framework - Developer Preview
Chris O'Brien - Best bits of Azure for Office 365/SharePoint developers
Chris O'Brien - Modern SharePoint development: techniques for moving code off...
TypeScript and SharePoint Framework
SPUnite17 SPFx Extensions
[Patel] SPFx: An ISV Insight into latest Microsoft's customization model
Application innovation & Developer Productivity
SharePoint 2010 - InfoPath, Workflow
SPUnite17 Timer Jobs Event Handlers
Get started with building native mobile apps interacting with SharePoint
SharePoint Development with the SharePoint Framework
Custom Applications - What, When, and Why
SharePoint for ASP.Net Developers
Modern SharePoint Development using Visual Studio Code
Getting Started with SharePoint Development
ECS19 - Michael Greth - Best Practice with Company Video on Microsoft Stream
ECS19 Bert Jansen - Modernizing your existing sites
How we built nothingbutsharepoint.com on sharepoint 2010
Chris O'Brien - Building AI into Power Platform solutions
Ad

Viewers also liked (20)

PPTX
OFFICE MANNERS
PPTX
Office manners copy
PPTX
Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)
PDF
Topic6.1 managing career_career_management
PPTX
Organizational Issues
PPTX
Entering the work place
PPTX
Mutation of land
PDF
Fagmøte om Omni-Channel Marketing - Agenda
PPTX
Professional telephone etiquette
PPTX
Ethical issues in organizational behavior
PDF
Ethics in the workplace
PPT
Presentation: Telephone Etiquette
PPT
Basic telephone skills
PDF
Successful innovators don't care about innovating
PPTX
Office Etiquette
PPTX
Etiquette and good manners
PPTX
Workplace etiquette & manners
PPT
Conflict management
PPT
Conflict Management
PPTX
Conflict resolution
OFFICE MANNERS
Office manners copy
Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)
Topic6.1 managing career_career_management
Organizational Issues
Entering the work place
Mutation of land
Fagmøte om Omni-Channel Marketing - Agenda
Professional telephone etiquette
Ethical issues in organizational behavior
Ethics in the workplace
Presentation: Telephone Etiquette
Basic telephone skills
Successful innovators don't care about innovating
Office Etiquette
Etiquette and good manners
Workplace etiquette & manners
Conflict management
Conflict Management
Conflict resolution
Ad

Similar to Do's and don'ts for Office 365 development (20)

PPTX
O365: Attack of the Clones
PPTX
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
PPTX
Pearls and Must-Have Tools for the Modern Web / .NET Developer
PPTX
SharePoint 2013 App or Not to App
PPTX
Drew madelung sp designer workflows - sp-biz
PDF
Spca2014 chris o brien modern share-point development - techniques for off-...
PPTX
Rencore Webinar: SharePoint Customizations - the most overlooked road block t...
PDF
Come riprogettare le attuali farm solution di share point con il nuovo modell...
PPTX
Deep dive into share point framework webparts
PDF
April 2020 Microsoft 365 Need to Know Webinar
PPTX
Nsc 2013 06-17 - random rants on 2013
PPTX
SharePoint Development
PPTX
Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...
PDF
Introduction to Microsoft Flow and Azure Functions
PPTX
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
PDF
Lifecycle Management with SharePoint Apps and Solutions
PPTX
SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012
PDF
October 2018 Office 365 Need to Know Webinar
PDF
SharePoint Saturday Kansas 2015 - Building Killer Office365 Public Sites
PPTX
SPS calgary 2017 introduction to azure functions microsoft flow
O365: Attack of the Clones
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
Pearls and Must-Have Tools for the Modern Web / .NET Developer
SharePoint 2013 App or Not to App
Drew madelung sp designer workflows - sp-biz
Spca2014 chris o brien modern share-point development - techniques for off-...
Rencore Webinar: SharePoint Customizations - the most overlooked road block t...
Come riprogettare le attuali farm solution di share point con il nuovo modell...
Deep dive into share point framework webparts
April 2020 Microsoft 365 Need to Know Webinar
Nsc 2013 06-17 - random rants on 2013
SharePoint Development
Developing SharePoint 2013 apps with Visual Studio 2012 - SharePoint Connecti...
Introduction to Microsoft Flow and Azure Functions
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
Lifecycle Management with SharePoint Apps and Solutions
SPCA2013 - Developing SharePoint 2013 Apps with Visual Studio 2012
October 2018 Office 365 Need to Know Webinar
SharePoint Saturday Kansas 2015 - Building Killer Office365 Public Sites
SPS calgary 2017 introduction to azure functions microsoft flow

More from Chris O'Brien (16)

PPTX
Chris OBrien - Azure DevOps for managing work
PPTX
Chris O'Brien - Ignite 2019 announcements and selected roadmaps
PPTX
COB ESPC18 - Rich PowerApps with offline support
PPTX
COB - PowerApps - the good, the bad and the ugly - early 2018
PPTX
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
PPTX
Deep dive into SharePoint 2013 hosted apps - Chris OBrien
PPTX
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
PPTX
SP2013 for Developers - Chris O'Brien
PPTX
Getting to grips with SharePoint 2013 apps - Chris O'Brien
PPTX
SharePoint Ribbon Deep Dive
PPTX
Automated Builds And UI Testing in SharePoint 2010 Development
PPTX
Optimizing SharePoint 2010 Internet Sites
PPTX
Managing the SharePoint 2010 Application Lifecycle - Part 2
PPTX
Managing the SharePoint 2010 Application Lifecycle - Part 1
PPT
SharePoint workflow deep-dive
PPT
SharePoint Web Content Management - Lessons Learnt/top 5 tips
Chris OBrien - Azure DevOps for managing work
Chris O'Brien - Ignite 2019 announcements and selected roadmaps
COB ESPC18 - Rich PowerApps with offline support
COB - PowerApps - the good, the bad and the ugly - early 2018
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Deep dive into SharePoint 2013 hosted apps - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
SP2013 for Developers - Chris O'Brien
Getting to grips with SharePoint 2013 apps - Chris O'Brien
SharePoint Ribbon Deep Dive
Automated Builds And UI Testing in SharePoint 2010 Development
Optimizing SharePoint 2010 Internet Sites
Managing the SharePoint 2010 Application Lifecycle - Part 2
Managing the SharePoint 2010 Application Lifecycle - Part 1
SharePoint workflow deep-dive
SharePoint Web Content Management - Lessons Learnt/top 5 tips

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Modernizing your data center with Dell and AMD
PPTX
MYSQL Presentation for SQL database connectivity
PDF
cuic standard and advanced reporting.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
Empathic Computing: Creating Shared Understanding
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Mobile App Security Testing_ A Comprehensive Guide.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction
Modernizing your data center with Dell and AMD
MYSQL Presentation for SQL database connectivity
cuic standard and advanced reporting.pdf
Unlocking AI with Model Context Protocol (MCP)
NewMind AI Weekly Chronicles - August'25 Week I
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Monthly Chronicles - July 2025

Do's and don'ts for Office 365 development

  • 1. Do’s and Dont’s for Office 365 Development Chris O’Brien - MVP
  • 2. Independent Consultant Head of Development, Content and Code www.sharepointnutsandbolts.com @ChrisO_Brien http://cob-sp.com/COBLinkedIn About me
  • 3. Agenda • The Office 365 dev landscape – things you CAN’T do • The DON’T list: • 4 fundamental don’ts • 4 “more debatable” don’ts  • The DO list • Remote provisioning • Office 365 apps/auth over SharePoint Add-ins • App script parts • Summary
  • 4. Office 365 dev – things you CAN’T do Farm solutions (WSPs) • No feature receivers • No timer jobs • No event receivers Non-sandbox SharePoint API code • No custom field controls • No site definitions • Etc.. The following are 100% NOT SUPPORTED in Office 365:
  • 6. Don’t #1 - don't use the sandbox APIs Why not: • Microsoft are likely to disable server- side code in SharePoint Online What you CAN do: • Use client-side code (e.g. JavaScript) • Use remote server-side code (e.g. the add-in model)
  • 7. Don’t #2 - don't customize the suite bar Why not: • Microsoft need to “own” this – new functionality may appear here • JavaScript/CSS hacks may conflict with Microsoft changes • Consistency across tenants What you CAN do: • Add a logo/ background image • Change the color via Office 365 themes
  • 8. Don’t #3 - don't rely on Office 365 HTML* Why not: • Microsoft need to change this from time to time • It is NOT an API or contract What you CAN do: • Provide your own HTML – master page, layouts, display templates etc. (*or at least, be VERY careful!)
  • 9. Don’t #4 - don't customize ODFB sites Why not: • Microsoft need to “own” this – new functionality may appear here • Now considered part of the service, like Delve • Becoming more like a doc lib, rather than full site Guidance webcast: • http://cob-sp.com/1Oz2Vv2
  • 10. Fundamental “don’ts” summary: 1. Don’t use the sandbox APIs 2. Don’t customize the suite bar 3. Don’t rely on Office 365 HTML 4. Don’t customize ODFB sites
  • 11. Do’s: 1. Do use Office 365 themes/suite bar options 2. Do use remote APIs: 1. CSOM (.NET) 2. JSOM 3. REST 4. Android/iOS
  • 12. More controversial don’ts 1. Don’t use a custom master page 2. Don’t use a custom web template 3. Don’t use Features to provision fields and content types ..also: 1. Don’t use web parts
  • 14. Don’t use a custom master page! WHAT?? • This is the recommended approach to branding since SharePoint 2007! • Easy way to control all pages in a site (e.g. global navigation, footer etc.) Why not: • Microsoft will update OOTB master pages with new functionality
  • 15. Office 365 updates and your master page Time OOTB Master Custom Master<< Copy >> Service updates for introducing new version of the out of the box master page with some new capabilities or bug fixes. Significant differences on the outcome unless custom master page been updated during the releases. New custom master page is created by copying oob master or starting from scratch using oob master as the reference master Seattle.master Version 1.0 master Seattle.master Version 2.0 master Seattle.master Version 3.0 master contoso.master Version 1.0 master contoso.master Version 1.0 master contoso.master Version 1.0
  • 17. Untested updates can be dangerous! The scenario: • Intranet with 50,000 users • OOTB master page, with some custom CSS/JavaScript Untested O365 change = broken intranet
  • 18. Strategies for dealing with this 1. Explicitly CHOOSE to use a custom master page – SOME protection? N.B. This involves “paying the customization tax” – you need to copy any Microsoft updates 2. Always have a First Release-enabled tenant
  • 19. Deciding whether to use a custom master page Other factors: • Responsive design? • Can CSS achieve the requirements?
  • 21. Don’t use custom WebTemplates! Why not: • It’s the same deal as custom master pages – Microsoft will want to update e.g. the team site definition
  • 22. Maintenance challenge with web templates Time Team Site Custom Web Template <xml> onet.xml X feature activations <xml> onet.xml X feature activations <xml> onet.xml X feature activations +2 <xml> onet.xml X feature activations +4 <xml> onet.xml X feature activations <xml> onet.xml X feature activations << Copy >>
  • 23. More debatable/controversial don’ts: #3 Don’t use Features to provision fields/content types etc.
  • 24. Don’t use Features for provisioning Why not: • Provisioned artifacts have dependency on Feature XML (in content database) • Microsoft don’t like this for running Office 365 BUT: • Is that the implementer’s problem? 
  • 25. Do’s: #1 Do use remote provisioning
  • 26. Remote provisioning – the alternative to WebTemplates • Better APIs for remote provisioning now • OfficeDev Patterns and Practices site provisioning framework: • XML for defining custom site “template” definition • Remote code (PowerShell or .NET) to create sites – Azure WebJob • Full engine/framework for creating sites from a SharePoint list item • Ability to “extract template” from an existing site
  • 27. Custom sites via remote provisioning in Office 365 DEMO
  • 28. Do’s: #2 Use Office 365 apps in preference to SharePoint Add- ins
  • 29. Using Office 365 APIs • SharePoint add-in authentication sucks! • Less and less reason to build a SharePoint add-in. Consider: • SP add-ins need to be installed to sites • SP add-ins must be accessed from SharePoint – not standalone • Office 365 app authentication can now talk to SharePoint. Technique: Authenticate to Office 365/Azure AD Get access token Use token with CSOM/REST Office 365 app? SharePoint Add-in?
  • 30. Options for Azure AD auth “User + app” authentication • Authorization Code Grant Flow • Implicit Grant Flow “App-only” authentication • Client Credentials Grant Flow
  • 31. Using an Office 365 auth token to talk to SharePoint DEMO
  • 33. Do’s: #3 Use app script parts (cloud-friendly web parts)
  • 34. App script parts Web part definition = Script Editor Web Part + custom JavaScript Output a DIV onto page JavaScript injects content into DIV
  • 35. App script parts (modern web parts) DEMO
  • 36. App script parts - advanced • Sometimes you need “web part properties” • This involves: • Storing the data • Presenting the UI • Options: • Persist somewhere custom • Persist to Script Editor config (hidden field) – see https://olescorner.wordpress.com/2015/06/04/49
  • 37. Do’s: #4 Create multiple tenancies (if doing development)
  • 38. Using multiple Office 365 tenancies for dev/test/prod • YES it costs more! • BUT, several SharePoint elements are global: • Change something here whilst developing in a tenant = changed for everyone! • TIPS – use small number of users, and maybe lower plan level
  • 39. Summary – what to take away • BUT, consider whether guidance is 100% appropriate for your case • A custom master page and/or web template is NOT crazy for a publishing intranet! (But it might be for collaboration sites) Old approach Consider.. Custom master page Office 365 themes. Custom CSS file. Web templates/features for provisioning Remote provisioning Web part App script part
  • 40. Resources • Training section on http://dev.office.com • PnP remote provisioning solution - webcast • http://cob-sp.com/1MjPJ7u • Avoid customizing ODFB sites – webcast: • http://cob-sp.com/1Oz2Vv2 • App script web part with properties: • http://cob-sp.com/1kkloi8 • (By Ole Martin Pettersen)
  • 42. THANK YOU! ANY QUESTIONS? Chris O’Brien www.sharepointnutsandbolts.com