what is new in sharepoint 2013 for developers

47
SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 11/28/2012 WHAT IS NEW FOR DEVS IN SP 2013 ADIS JUGO, PLANB.

Upload: sharepoint-and-project-conference-adriatics

Post on 26-Jan-2015

2.027 views

Category:

Technology


0 download

DESCRIPTION

Speaker: Adis Jugo; SharePoint 2013 has brought us a new paradigm of developing SharePoint solutions, called SharePoint Apps. To support developers with the app development, a whole new technology stack was delivered with SharePoint 2013: two new APIs, new workflow engine, plus improvements in all existing APIs and tools. This session will give an overview of the new and improved stuff for developers in SharePoint 2013 and Visual Studio 2012.

TRANSCRIPT

Page 1: What is new in SharePoint 2013 for developers

SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 11/28/2012

WHAT IS NEW FOR DEVS IN SP 2013ADIS JUGO, PLANB.

Page 2: What is new in SharePoint 2013 for developers

sponsors

Page 3: What is new in SharePoint 2013 for developers

Agenda• Apps• Search• Workflow• WCM• Mobile• Other

Page 4: What is new in SharePoint 2013 for developers

APPS

Page 5: What is new in SharePoint 2013 for developers

In its most basic form, an app for SharePoint is a web application that is registered with SharePoint using an app manifest.

Page 6: What is new in SharePoint 2013 for developers

apps architecture

Browser

SharePoint Server

1

10

5

8

9

App.com

2

STS (ACS)

3

4

6

7

Page 7: What is new in SharePoint 2013 for developers

apps…• …are not executed in SharePoint App pool• …are in most of the cases not even running on SP Server• …can have full trust, with user’s approval (OAuth)• …can access SharePoint Data• …can access outer world non-SharePoint Data• …can use any external resources• …can be executed in it’s own chrome, as app parts, or as

SharePoint extensions

Page 8: What is new in SharePoint 2013 for developers

why apps• Isolated (safe!)• Multi-tenant• Multiple development possibilities (even non-MS stack)• Easier to deploy (no SharePointisms by deployment)• Easier to maintain (lifecycle – versioning, upgrades)• Manageable (SharePoint Marketplace, Corporate Catalog)

• Cloud ready!

Page 9: What is new in SharePoint 2013 for developers

Apps Examples

9

Apps

App catalog and store

Vacation request

Event planning

Expense calculator

Learning management

Risk management

Help-desksupport

Products and platforms

Services and data

Page 10: What is new in SharePoint 2013 for developers

sp app design - a choice of three approaches

App Web (from WSP)

Parent Web

SharePoint-hosted App

Provision 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 App

Windows Azure + SQL Azure provisioned invisibly as apps are installed

Azure (from

WebDeploy, DacPac)

SharePoint Web

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

Cloud-based Apps

Provider-Hosted App

“Bring your own server hosting infrastructure”Developers will need to isolate tenants

SharePoint Web

Your Hosted Site

Page 11: What is new in SharePoint 2013 for developers
Page 12: What is new in SharePoint 2013 for developers

Types of Apps for SharePointShape Description Example

Immersive App(Full Page)

App that implements a new scenario for customers

Resource Tracking, Budgeting

App Part Provides new parts you can add to your sites

Weather, Team Mascot, News

Extension App(Custom Action)

Add new actions for documents and items

Display Document Visualization, Print to Print Service Vendor

Page 13: What is new in SharePoint 2013 for developers

framework & tools• .NET Framework 4.0 (or 4.5)• JavaScript• Visual Studio

• only 2012• need to create an App Domain• additional templates

• Napa Office 365 Dev Tools• client side tools• cloud based• can export to VS

• Solution upgrades - do I have to?

Page 14: What is new in SharePoint 2013 for developers

Visual Studio• New “Development” site template is the only way you

can deploy Apps from VS to SP directly• Must configure Server to develop against it• Can create 2010 objects• Still has the old SharePoint Solution project templates• New list designer item template

Page 15: What is new in SharePoint 2013 for developers
Page 16: What is new in SharePoint 2013 for developers
Page 17: What is new in SharePoint 2013 for developers

app security• App Permissions:• Set during Development• Granted during Installation• Trusted by Users

• App Policies:• User only (only care about who)• App only (only care about what)• User and App (care about both)

Page 18: What is new in SharePoint 2013 for developers

app management• Service & Service Application in Central Admin• License Management• Catalog Management• App Monitoring• Site Template for Managing

Page 19: What is new in SharePoint 2013 for developers

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 20: What is new in SharePoint 2013 for developers

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 21: What is new in SharePoint 2013 for developers

feature availability matrix

Page 22: What is new in SharePoint 2013 for developers

rest urls in sharepoint 2013•_api folder!• http://sharepoint/_api/web

vshttp://sharepoint/_vti_bin/client.svc/web

•Example REST URLs targeting SharePoint sites• _api/web/lists• _api/web/lists/List1• /_api/web/lists/getByTitle('Consultants')/Items

Page 23: What is new in SharePoint 2013 for developers

remote event receivers

App Server

Push Notifications

Page 24: What is new in SharePoint 2013 for developers

is an app answer for everything?

Page 25: What is new in SharePoint 2013 for developers

things to keep in mind• Plan for RAM. Target = 16Gb for combined dev

environment.• Apps require configuration work to setup. • Developer Knowledge:• Will need to understand DNS and App Domains or work with

someone who does.• If you haven’t learned claims, do so. • Deprecating .asmx web services

Page 26: What is new in SharePoint 2013 for developers

when should you choose a sp solution• Access to full SP object model• Administrative functions or extensions• Require Scope above web• Custom Site Definitions, Themes, Delegate controls,

action groups, User Controls• OAuth is not an option

Page 27: What is new in SharePoint 2013 for developers

New List designer

Page 28: What is new in SharePoint 2013 for developers

SEARCH

Page 29: What is new in SharePoint 2013 for developers

search changes•Updated API, allows searching by "NEAR", better display templates•New Content Enrichment Web Service• Keyword Language Query (KQL)• Client object model (CSOM) and REST allows searching from a non-SP server...returns JSON http://server/site/_api/search

Page 30: What is new in SharePoint 2013 for developers

deprecated in search• SOAP web service has been deprecated

_layouts/_vti_bin/search.asmx• SQL Query syntax removed• XSLT is replaced with Display Templates• No more use of the Full Text SQL Query

Page 31: What is new in SharePoint 2013 for developers

WORKFLOW

Page 32: What is new in SharePoint 2013 for developers

new workflow in sharepoint 2013

• Completely redesigned workflow infrastructure• New host• .NET 4.5

• Declarative, no-code authoring environment• Declarative Workflows can call REST and SOAP services• Enhanced SPD 2013 authoring support• Support for creating custom actions• Introducing “Stages” which mitigate SharePoint

Designer’s lack of loop support and provides state machine functionality

Page 33: What is new in SharePoint 2013 for developers

sp2013 workflow architecture

Page 34: What is new in SharePoint 2013 for developers

workflow tooling (1)• SharePoint Designer 2013• Can build both 2010/2013 workflows• Stages, Loops & Steps –status per stage• Core Actions

• “Add a Comment”, “Build Dictionary”, “Count Items in Dictionary”, “Do Calculation”

• “Call HTTP Web Service”, Go To “Stage”

• Coordination Actions• Start a List workflow, Start a Site workflow

• Project Actions• Create Project from Current Item, Set Project Stage Status, Wait for

Project Event

Page 35: What is new in SharePoint 2013 for developers

workflow tooling (2)• Visual Studio 2012• Designer surface for declarative workflows• Deploy via SharePoint App

• Visio 2013• 3 Stencil categories for SP2013 Workflow Actions, Conditions &

Terminators

Page 36: What is new in SharePoint 2013 for developers

WEB CONTENT MANAGEMENT

Page 37: What is new in SharePoint 2013 for developers

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 38: What is new in SharePoint 2013 for developers

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 39: What is new in SharePoint 2013 for developers

Other changes

Page 40: What is new in SharePoint 2013 for developers

bcs changes• Supports ODATA• Filtering with drop down list selection• Export External lists to Excel (1 way sync)•New Event Receivers:• get notified of data changes in external system • e.g., you can create a custom event on an external list that

sends an email message to an employee when a customer account is assigned to that employee in the external system

Page 41: What is new in SharePoint 2013 for developers

new field type• GeoLocation field

Page 42: What is new in SharePoint 2013 for developers

MOBILE AND TABLET DEVICES

Page 43: What is new in SharePoint 2013 for developers

sharepoint 2013 mobility api• Windows Phone 7.5 – SP Mobility API• Windows Phone SDK 7.1 with 7.1.1. update• SharePoint SDK for Windows Phone 7.1. • Two new VS 2010 Templates:• Empty SharePoint 2013 Mobile App• SharePoint 2013 List App

Page 44: What is new in SharePoint 2013 for developers

sharepoint powered wp7 app

Data

APP

SP MOBILITY API

PNS

Bing maps

Page 45: What is new in SharePoint 2013 for developers

non-wp devices

Windows 8

iPad/iPhone

AndroidBlackber

ry

HTML5/jQuery

REST

CSOM and/or RESTHttpClient

Page 46: What is new in SharePoint 2013 for developers

questions?

ADISJUGO.COM

@ADISJUGO

Page 47: What is new in SharePoint 2013 for developers

thank you.

SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 11/28/2012