Microsoft Dynamics.

Slides:



Advertisements
Similar presentations
Top 10 things you need to know about SharePoint Site Administration
Advertisements

June 4-8 Orlando. WSS Object Model Fundamentals Working Remotely with Lists and Document Libraries Cross-Site Data Queries Exploring New WSS Classes.
Developing for SharePoint with Visual Studio Jason Keicher
Programming SharePoint Object Model, Web Services, and Events Michael Morton 4/15/03.
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
Windows SharePoint Services: Advancements In Document, Content, And Data Storage Dustin Friesenhahn OFF409 Program Manager Microsoft Corporation.
Microsoft Office SharePoint 2007 Technical Enablement Tour Patrick Tisseghem (Managing Partner – U2U)
Mark Rees Microsoft Consulting Services OFC409 Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Windows SharePoint Services 3.0 (WSS v3) Browser Clients MS Word Clients MS Outlook Clients Microsoft Office SharePoint Server 2007 (MOSS) Windows.
Microsoft Certification Exam Coaching Session: Application Development.
AdvisorEvents.com Building WorkFlow Solutions with Windows SharePoint Services Patrick Tisseghem MVP SharePoint Portal.
OFC308 Windows SharePoint Services (version 3) Development: Using Feature and Solution Definitions for Constructing Custom SharePoint Sites Todd C. Bleeker,
Welcome to Philly Code Camp Russ Basiura SharePoint Consultant RJB Technical Consulting
WSS 3.0 Architecture and Enhancements Ashvini Shahane Member – Synergetics Research Lab.
Windows SharePoint Services 'v3': Creating And Defining Custom Templates, Sites, Features, And Solutions Mike Ammerlaan OFF308 Program Manager Microsoft.
Edwin Sarmiento Microsoft MVP – Windows Server System Senior Systems Engineer/Database Administrator Fujitsu Asia Pte Ltd
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Workflow Development Overview Architecture Requirements Types of workflows Stages of workflow.
OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing for Custom XML Tristan Davis Program Manager Microsoft.
WSS “v3” for Developers Jan Tielens Blog: Architect & Trainer U2U, Brussels.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Definitions Collaboration – working together on team projects and sharing information,
Slide 1.NET Development for Project 2003 Samples from the Project 2003 SDK Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation.
New & Improved Events List Relationships and Joins Large List Support Field & List Item Validation.
James Akrigg Microsoft Ltd Integrating InfoPath Forms Into Workflow Solutions And Business Processes.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Event Handlers Overview Classes Simple Event Handler from the SDK Deployment –Object model.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
Real World Uses, Tips, and Tricks SHAREPOINT 2010 EVENT RECEIVERS SPS Philly February 23 rd, 2013 Timothy Ferro.
Olaf Feldkamp Developer Platform Advisor Microsoft Switzerland blogs.msdn.com/swiss_dpe_team.
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
Asia Pacific SharePoint Conference 2007 May 15th to 16th, 2007 Hilton Hotel Sydney.
Coding Compliance Components Writing Custom Policies for Auditing, Expiration and More Jason Morrill Program Manager Windows SharePoint Services.
Web Content Management with MOSS 2007 Patrick Tisseghem
Windows Sharepoint Services , Tracking, And Other Collaboration Applications Mike Ormond Developer & Platform Group, Microsoft Ltd
Developer Design, build and test customizations Administrator Install and monitor customizations Site Collection Owner Activate and use customizations.
NET Development on Microsoft SharePoint Technology Part 4: Templates, Features, and Solution Deployment Mick Badran Breeze Training Consulting Trainer.
Application Hosting and Customization Introducing Sandboxed Solutions Executing Code in the Sandbox Sandbox Resource Monitoring.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Web Parts Overview Web parts in SharePoint 2007 “Hello World” web part Typical deployment.
Windows SharePoint Services Development Part 1: Paul Appleby Application Architect Microsoft Limited.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Programming the Microsoft SharePoint Products and Technologies Object Model Paul Appleby Developer & Platform Group
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Architecture & Object Model Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Architecture.
Microsoft Virtual Academy Jamie McAllister | SharePoint MVP & Solution Architect Rob Latino | Program Manager in Office 365 Support.
O SharePoint 2013 Remote Event Receivers Speaker.
SharePoint 101 – An Overview of SharePoint 2010, 2013 and Office 365
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Microsoft Office SharePoint Server 2007 Enterprise Search
Building Compliant Team Sites
Microsoft /4/2018 8:21 AM BRK3082 Build solutions and apps with Microsoft OneDrive API and Microsoft Graph API Ryan Gregg Principal Program Manger,
Collaboration and Storage with WSS v3
SPC Developer 6/25/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
What is SharePoint and why you should care
Programming SharePoint Object Model, Web Services, and Events
Visual Studio Tools for Office 2005
BIWUG | SPSaturday Sandboxed Solutions
Accessing and Surfacing LOB Data in SharePoint 2010
Searching Business Data with MOSS 2007 Enterprise Search
Microsoft Dynamics.
Migration to SharePoint 2013
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
Microsoft SharePoint Conference 2009 Jon Flanders
Visual Studio 2010 SharePoint Development Tools Overview
SharePoint Foundation 2010
Microsoft Office SharePoint 2007 Technical Enablement Tour
Microsoft Dynamics.
SharePoint 2007 Developer Overview Collaboration BI Features
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Microsoft Dynamics

Microsoft Dynamics Essentials 1: Object Models, Web Services, Document I/O, Event, and Lists Mick Badran Breeze Training Consulting Trainer + Sharepoint Specialist Ryan Duguid Microsoft NZ Sharepoint Technical Specialist

Agenda WSS Object Model Fundamentals Security-Related Changes Working Remotely with Lists Cross-Site Data Queries Event Handlers New Classes in the WSS Object Model

Object Models WSS 3.0 MOSS 2007 Microsoft.SharePoint.dll Microsoft.Office.Server.dll Microsoft.Office.Server.Publishing.dll Microsoft.Office.Server.Policy.dll Microsoft.Office.Server.Search.dll Microsoft.SharePoint.Portal.dll Microsoft.Office.Workflow.Tasks.dll Microsoft.SharePoint.Publishing.dll Microsoft.SharePoint.Workflow.Actions.dll There is also the .NET Reflector on www.aisto.com/roeder

Where can I use the WSS OM? WSS Sites Web Parts ASP.NET Custom Controls and User Controls Application pages Feature activation event handlers Event handlers for lists, doc libs, sites & site collections ASP.NET applications and Web services Windows Forms and Console applications WSS Object Model Web Services Web Parts Web Pages Smart Clients Smart and Mobile Clients Code that programs against WSS object model must be run on the front end Web server

SPWebServer SPVirtualServer SPSite High Backward Compatibility With WSS v2 Talking Points: ------------------- The SDK is your best resource for learning about the different classes . What you will find on the slide are the top-level classes that match one of the levels in the server and site architecture. Point out the difference between SPSite and SPWeb. SPWeb SPList SPListItem

SPSite Object Represents site collection User must be authenticated and authorised unless anonymous access is enabled Site Collection has an owner Site Collection contains hierarchy of child site(s)

SPWeb Objects Sites accessible through SPWeb objects Often must use SPSite object to access SPWeb objects

Calling Dispose Many WSS OM objects follow IDisposable pattern They use unmanaged resources that must be released Failure to call Dispose can cause serious memory leakage

SPList and SPListItem Just about everything in Sharepoint is a type of list. Lists are modeled using SPList objects Items modeled using SPListItem objects Document libraries can be accessed using SPList

SPFile and SPFolder Site represents hierarchy of files and folders Files represented through SPFile objects Folders represented through SPFolder objects What can be done? Discover all files and folders within a site Add, move, copy, delete files and folders Return a page to its initial ghosted state Program against Web Part data on a Web Part Page

SPDocumentLibrary Document Library is more than a SPList object Can convert SPList to SPDocumentLibrary Make extra functionality accessible

Exploring SharePoint using the Object Model Office System Developer Conference 2006 Exploring SharePoint using the Object Model © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Security-Related Changes Impersonating SPSite constructor Methods exposed in the OM to check permissions before doing the calls Elevating permission level Item-level security

Elevating Permissions Some aspects of WSS OM require privileged users Code fails when run by users without proper permission The behavior has been created by design (not a mistake!) Overriding this behavior sometime necessary SPSecurity.RunWithElevatedPrivileges solves this problem

Better support for security and OM programming Office System Developer Conference 2006 Better support for security and OM programming © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Querying Data with CAML CAML = Collaborative Application Markup Language Used in SharePoint for Definition of the Sites, Lists and Views Querying of SharePoint content Executing CAML Queries SPQuery SPSiteDataQuery lists.asmx search.asmx

Executing CAML Queries Office System Developer Conference 2006 Executing CAML Queries © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Working Remotely with Lists Remotely view and edit SharePoint List data http://[server]/_vti_bin/Lists.asmx Operations available: AddAttachment UpdateList DeleteList UpdateListItems GetAttachmentCollection AddList GetListItemChanges GetListAndView GetList GetListCollection GetListItems DeleteAttachment

An off-line client for a lists in SharePoint Office System Developer Conference 2006 An off-line client for a lists in SharePoint © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

WSS v2 vs. WSS v3 Event Handlers What is an event handlers? An event handler is a .NET assembly containing one or more classes handling events that are triggered by SharePoint WSS v2 only possible for document libraries executed in an asynchronous manner WSS v3 events architecture significantly improved Scope has been extended: lists, document libraries, content types, site, site collection Events supported for incoming email messages Support for synchronous events and asynchronous events Synchronous events occur before the fact and are cancel-able Events are used in other scenarios Custom policies Features

Scope of Events Scope Description Base Class Item in a list or library Actions users can do in a list include adding, modifying, deleting, check-in and check-out, ... SPItemEventReceiver List or library Trap changes to entities of list schema events, supporting list schema operations and the addition or removal of content types. SPListEventReceiver Web Events fired at the level of the site (e.g. adding and removing sites, creating and deleting lists) SPWebEventReceiver Email Provides a method for trapping the event when a list receives an e-mail message (EmailReceived) SPEmailEventReceiver Feature Trap the activation, deactivation, installation, or uninstallation of a Feature SPFeatureReceiver

Creating an Event Handler .NET class library Reference to Microsoft.SharePoint.dll Custom class inheriting a WSS receiver class Override base methods using Microsoft.SharePoint; namespace Demos { public class MyEventHandler: SPItemEventReceiver { public override void ItemDeleting(SPItemEventProperties properties) { // do something and possibly cancel the event properties.Cancel = true; properties.ErrorMessage = “my message"; } public override void ItemDeleted(SPItemEventProperties properties) { // do something

Deploying a WSS v3 Event Handler Compile class into strong-named assembly Deploy the DLL in GAC Register DLL as event handler in WSS v3 The WSS v2 way (only for document libraries) Programmatically via the object model Using the new WSS feature framework

Office System Developer Conference 2006 WSS Event Handlers © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

New Classes in WSS OM Navigation Content Types Recycle Bin Versioning Workflow

Navigation WSS Navigation is extensible Add nodes through WSS UI Adds nodes through code

Content Types SPContentTypeCollection SPContentType SPContentTypeId SPFieldLinkCollection SPFieldLink SPXmlDocumentCollection

SPAudit and SPAuditEntry WSS provides rich auditing support But doesn't make auditing usable OOB - you need MOSS Custom development required to make WSS auditing functional enable auditing using code now examine what's in WSS audit log

Working with Content Types Office System Developer Conference 2006 Working with Content Types © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Review WSS Object Model Fundamentals Security-Related Changes Working Remotely with Lists Cross-Site Data Queries Event Handlers New Classes in the WSS Object Model