SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 11/28/2012
WHAT IS NEW FOR DEVS IN SP 2013ADIS JUGO, PLANB.
sponsors
Agenda• Apps• Search• Workflow• WCM• Mobile• Other
APPS
In its most basic form, an app for SharePoint is a web application that is registered with SharePoint using an app manifest.
apps architecture
Browser
SharePoint Server
1
10
5
8
9
App.com
2
STS (ACS)
3
4
6
7
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
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!
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
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
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
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?
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
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)
app management• Service & Service Application in Central Admin• License Management• Catalog Management• App Monitoring• Site Template for Managing
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
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, ....
feature availability matrix
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
remote event receivers
App Server
Push Notifications
is an app answer for everything?
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
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
New List designer
SEARCH
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
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
WORKFLOW
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
sp2013 workflow architecture
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
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
WEB CONTENT MANAGEMENT
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
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
Other changes
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
new field type• GeoLocation field
MOBILE AND TABLET DEVICES
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
sharepoint powered wp7 app
Data
APP
SP MOBILITY API
PNS
Bing maps
non-wp devices
Windows 8
iPad/iPhone
AndroidBlackber
ry
HTML5/jQuery
REST
CSOM and/or RESTHttpClient
questions?
ADISJUGO.COM
@ADISJUGO
thank you.
SHAREPOINT AND PROJECT CONFERENCE ADRIATICS ZAGREB, 11/28/2012