SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

49
SharePoint 2013 What’s new for Developers Joris Poelmans SharePoint Architect RealDolmen

description

 

Transcript of SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Page 1: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

SharePoint 2013 What’s new for DevelopersJoris PoelmansSharePoint ArchitectRealDolmen

Page 2: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

About meWork at RealDolmen

Responsible for SharePoint Competence Center

SharePoint Server MVP since 2005

Active in Belux Information Worker User Group – www.biwug.be

Blog: http://jopx.blogspot.com

Twitter: @jopxtwits

Page 3: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

THE NEW WAY TO WORK TOGETHER

Page 4: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

SharePoint

4

ManageBuild

DiscoverOrganize

SHAREShare

Page 5: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

5

Build appsBuildsites

Build for the cloud

Buildapps

SharePoint 2013 makes customizing sites easier for user, web designer and professional developer alike.

The cloud provides you with the freedom to choose how and where to host your apps.

A new development model for building apps provides a secure and scalable way to build SharePoint solutions.

Driven by searchNew unified search platform takes information discovery to the next level

Page 6: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Apps for Office and SharePoint

6

Apps

App catalog and store

Vacation request

Event planning

Expense calculator

Learning management

Risk management

Help-desksupport

Products and platforms

Services and data

Page 7: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Build appsWeb Standards

Apps are built using industry proven web standards such as HTML, JavaScript and REST

Scalable and Safe

Apps are independently scalable which reduces total cost of ownership. Apps are secured and isolated from SharePoint

Accessible

Apps can be accessed from any device with a web browser.

Page 8: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Packaging and deployment options in SPS 2013

Farm

• Full access API• Server side

code• Server file level

access required• Classic model

from 2007• On-premise only

Sandbox Apps

• Partially trusted code service with limited server side code

• No file level access required

• Resource monitored

• Introduced with 2010

• Online deployment possible

• New model• Deploy from

corporate catalog or marketplace

• Limited server footprint

• Relies heavily on client-side technologies

• Online deployment possible

8

New!

Page 9: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Why SharePoint 2013 apps?

• End users => consumerization through app catalogs• IT Pro => keep SharePoint environment stable• Developers => reuse existing skills sets

Apps are an alternative deployment but farm solutions might still be valid

Page 10: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

10

Apps – three possible scenarios

App Web

Parent Web

SharePoint-hosted AppProvision an isolated sub web on a parent web• Reuse web elements

(lists, files, out-of-box web parts)

• No server code allowed; use client JavaScript for logic, UX

Azure Auto-Provisioned AppWindows Azure + SQL Azure provisioned invisibly as apps are installed

Azure SharePoint Web

Get remote events from SharePoint Use CSOM/REST + OAuth to work with SPS

Cloud-based Apps

Developer-Hosted App“Bring your own server hosting infrastructure”Developers will need to isolate tenants

SharePoint

Web

Your Hosted

Site

Page 11: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

11

SharePoint 2013 app development scenarios

Deployment options

On-premise install

Development options Development tools

Hosted install

Office 365

Farm solution

Sandbox solution

SharePoint-Hosted appsDeveloper-Hosted apps

Azure-Hosted apps

Browser

SharePoint Designer

Visual Studio

Eclipse, PHP, etc....

Page 12: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

12

Getting started with app development Local development

Has to be on Windows Server 2008 R2 (or later) Memory reqs have gone up – 12 GB RAM seems workable ... But

TechNet recommends 24 GB Extra configuration needed for app development Visual Studio 2012

Remote development Sign up for Office 365 Developer Site Possible to use NAPA – app for building apps

Page 13: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

13

SharePoint CSOM and REST API Apps connect to SharePoint using

SharePoint 2013 Client Side Object Model (CSOM) SharePoint 2013 REST API Javascript cross-domain library (SP.RequestExecutor.js)

Main investments in 2013 Client.svc is extended with REST capabilities

Easier for javascript and non .NET code Implemented in accordance with oData protocol Programming style is largely unchanged

New APIs for SharePoint Server functionality User Profiles, Search, Taxonomy, Feeds, ....

Page 14: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

14

REST URLs in SharePoint 2013• CSOM URLs can go through _api folder• Replace

http://sharepoint/_vti_bin/client.svc/web• With

http://sharepoint/_api/web

• Example REST URLs targeting SharePoint sites• _api/web/lists• _api/web/lists/List1• _api/web/?$select=title,id• /_api/web/lists/getByTitle('Consultants')/Items• ....

Page 15: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

15

SharePoint App UX Immersive App - app is shown full screen with in a separate page

Part - App is shown as a part on the SharePoint page – similar experience to web part

UI Custom Actions – possible to make the App available through ribbon or menu actions for documents and items

See Apps for SharePoint UX design guidelines

Page 16: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

16

Which API to use?

Page 17: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Guidance about apps

• Use apps whenever you can• Use apps for decoupling scenario based business

applications• SharePoint hosted apps for small reusable standalone applications

(stock tickers, RSS feeds, ...)• Provider hosted for large corporate business applications (time

registration, budgetting, ...)• Azure auto-hosted apps for public marketplace large scale applications

• Avoid apps for tight UI and feature integration• Use farm level solutions for administrative interfaces

Page 18: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

DemoEnhancing SharePoint with apps

Page 19: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Build sitesAccelerate Site Creation

Sites can be customized and themed with apps or a few clicks in the browser.

Simple Site CustomizationSharePoint sites are built using web standards making it easy to customize with industry standard web design tools

Adaptive Experiences

Sites can adapt their experiences based on the user.

Page 20: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

20

Designing a website in SPS 2010

Sketche

s

CSS

HTML

Integrate Ribbon

New

Masterpages

Custom Channel Management

Custom

Roll-up

control

Dreamweaver, Microsoft Expression, … SharePoint Designer + Visual Studio

Custom Nav

provider

Custom

Catalog

Custom Catalog Integration

Page 21: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

21

Designing a website in SPS2013

Auto Convert

SnippetGallery

Channelsettings

SharePoint

Dreamweaver, Expression, etc…

• Ribbon

• Placeholder Main

• Custom Minimal Master

• It just w

orks!• Navigation

• Catalog Integration

• Content Search Webparts

• Channel Panels

Sketches

CSS

HTML

Upload

Page 22: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

22

WCM in SharePoint 2013 Support the tools and workflows designers use

Variations & Content Translation

Search Engine Optimization

Cross Site Publishing Video & Embedding Image renditions Clean Urls Metadata navigation

Page 23: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

23

Managed navigation Drive your navigation and

URLs based on Term Store hierarchies

Clean URLs for actual end users www.contoso.com/careers www.contoso.com/aboutus

Define settings for navigation in terms store manager

Provides also dynamic topicpages capability for minimizingamount of physical pages for catalog type sites

Page 24: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

AudioCamerasComputersHome appliancesPhonesTV and video

TERM STORE NAVIGATION TAXONOMY

Search

Product Catalog

Filter query byCATEGORY: COMPUTERS

Friendly URLhttp://contoso.com/computers

Use pagemaincategory.aspx

CONTENT SEARCH WEB PART

Managed navigation, search and topic pages

Page 25: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Mobile• Classic and Contemporary

views for mobile browsers• Automatic Mobile Browser

Redirection• Device Channels: Target

different designs based on user agent string

• Office Mobile Web Apps• Push notifications

Page 26: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

DemoDesigning for a new user experience with SharePoint sites

Page 27: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Driven by search New search architecture

One unified search architecture supported by strong analytics. Consolidation of FAST and Enterprise Search components

Personalized search resultsSearch results based on search history. Full control over ranking, sorting, etc …

New customisation model for SearchEasier to extend and configure the search user experience. Rich contextual previews

Page 28: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

28

Search ArchitectureImportant elements of search result pages• Refiners• Promoted results• Result blocks• Hover panel

Page 29: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

29

2013 Search UI• No more FAST search• Out of the box PDF support• Continuous crawling• Memory reqs have gone up

Page 30: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

30

2013 Search UIImportant elements of search result pages• Refiners• Promoted results• Result blocks• Hover panel

Page 31: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

31

2013 Search UIImportant elements of search result pages• Refiners 1• Promoted results• Result blocks• Hover panel

Page 32: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

32

2013 Search UIImportant elements of search result pages• Refiners • Promoted results 2• Result blocks• Hover panel

Page 33: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

33

2013 Search UIImportant elements of search result pages• Refiners • Promoted results • Result blocks 3• Hover panel

Page 34: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

34

2013 Search UIImportant elements of search result pages• Refiners • Promoted results • Result blocks • Hover panel 4

Page 35: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

35

Search for Developers Deprecated or changed

SOAP web service has been deprecated _layouts/_vti_bin/search.asmx

SQL Query syntax removed XSLT is replaced with Display Templates

What’s new CSOM – Microsoft.SharePoint.Client.Search.Query REST web service - _api/search/

Page 36: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

36

Typical search customization scenarios No more XSLT for core results search webpart

The Search UI is driven by Query rules Display templates Result types Result sources

Page 37: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

37

Customizing search – Query Rules Control over query results

Defined via a Condition and Action

Query rules: Result Blocks Promoted Results Ranked Results

Page 38: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

38

Customizing search – Display Templates HTML templates that define how a search result looks

SharePoint auto-generates the JS version and the HTML Stored in the master page gallery

Support full debugging

Page 39: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

39

Customizing search – Result types Define what Display Templates will display a search result based upon a condition Search service Site Collection Site Owners

Page 40: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

40

Customizing search – Result Sources Replace Scopes and Federated Locations Extended federation options

Remote SharePoint farms Exchange OpenSearch

Definable at Search Service – search administrator – globally

available Site collection level – site collection admin –

available to all sites in site collection Site – site owners – this site only

Page 41: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

41

Content By Search Web Part Similar to Content by Query Web Part

– but based on indexed content Show content cross site collections

Show content cross multiple site collections

New presentation template model for easy content presentation fine tuning Content rendered in client side Provides full control on rendering

capabilities using html templates Easy editors as web part editors for

defining planned query

Page 42: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

DemoThe new search experience

Page 43: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Build for the cloud

Write once, run anywhere

An app can run outside the firewall in the cloud and from inside the firewall in a data center.

Hosting freedomApps can be hosted on any platform giving you complete freedom.

Re-use logic and assetsBuild apps that can share logic and code with other web hosted solutions. Re-use existing services and assets within you app.

Use cloud dataConsume oData sources through BCS

Azure WorkflowNew workflow model available

Page 44: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

44

Consuming oData using BCS BCS can now access oData sources

OOB just like WCF or SQL data sources

Supported in Visual Studio and SharePoint Designer

Natively supported by SharePoint 2010, SQL Azure, Azure Data MarketPlace and SQL Server Reporting Services, ...

Page 45: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

45

Windows Azure Workflow Workflow now treated as a service Moved to Windows Azure Workflow

No longer runs in the content farm No longer requirement to run on SharePoint WFE /

App servers Harnesses the latest workflow technology from

Microsoft SharePoint deployment drives where

workflow runs Hosted: Azure Workflow On premise: Windows Azure Workflow Service

Improves stability, scalability & transparency

Page 46: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Content

EventsApps

Solutions

SharePoint

WF3Host

SharePoint OM

AzureAccess Control

OAuth2Azure

Workflow

AzureServiceBus

AzureWorkflow

Azure Workflow Service Application

Proxy

Visual Studio

SharePoint Designer

Events

Workflow ServicesManager

Instances Interop

Deployment Messaging

REST Calls

Windows Azure Workflow Process

animated

Page 47: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Summary

47

Build apps

BuildSites

Multilingual support; support all web design tools; powered by search

Build for the cloud

Write once, run anywhere; use Office 365; Windows Azure or on premise

Apps for SharePoint

Disoverable in the store; accessible from any device

Driven by search

New unified search platform takes information discovery to the next level

Page 48: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Thank You

Page 49: SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012

Q & A