Code Tax: Programming With The Taxonomy API In SharePoint 2010

Slides:



Advertisements
Similar presentations
Aptillon, Inc. – Director and Founding Partner – SharePoint MVP since January 2008 Blog:
Advertisements

SharePoint 2010 Client Side Object Model. Agenda Introduction The Problem Client side vs Server Side Client Side Object Model – How it works – What can.
Arthur Brost Portals and Collaboration Practice Manager twentysix New York I BP402.
SharePoint Forms All you ever wanted to know about forms but were afraid to ask.
Business Development Suit Presented by Thomas Mathews.
Developing against Managed Meta Data – Blackbelt
Microsoft SharePoint 2010 technology for Developers
Microsoft SharePoint® Online: Extensibility and Customization
Randy Williams, MOSS MVP Senior Consultant Synergy Corporate Technologies.
SharePoint 2010: Managed Metadata and Search Vili Bogdan DevFacto Technologies Inc. Solution Developer.
Ribbon UI SharePoint Workspace SharePoint Mobile Office Client and Office Web App Integration Standards Support Tagging, Tag Cloud, Ratings Social Bookmarking.
SharePoint 2013 Catalog Sites Brian Culver ● SharePoint Saturday DFW ● March 7, 2015 Build a SharePoint 2013 Search Driven.
Meeting # 68 Meeting # 68 Welcome to the Minnesota SharePoint User Group August 11 th, 2010 Composite.
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Microsoft ® Official Course Developing Managed Metadata Solutions Microsoft SharePoint 2013 SharePoint Practice.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Please note the following session was not recorded due to the newly available product content on
EDUCATION YOU CAN TRUST ® SharePoint Designer 2010 Course Review Review provided by: DNS Computing Services, LLC
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
Facebook Like Solution in SharePoint Using JavaScript Amie Seisay
SharePoint Users Group Content Classification Step by Step SharePoint 2007 and 2010.
CMS I – BASIC WEB EDITING INTRODUCTION TO THE CMS Presented By: Rodneikka Scott, MS – Implementation Project Manager Lila Elliott, MA – Manager Client.
M ODULE 5 – S HARE P OINT 2010 C ONTENT T YPES.
Web Publisher. Rinaldo De Paolis General Manager – Qualitem & Connected Systems.
Basic Developer Knowledge That Every SharePoint Admin Must Have Randy Williams, MVP MOSS Synergy Corporate Technologies
WCM Platform Improvements ECM and Enterprise Metadata Advanced Routing and Document Sets In Place Records Management.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
19 May 2012 Business Connectivity Services (BCS) Brett Lonsdale – Lightning #SPSJHB The first ever all green SharePoint event on earth.
Slide 1.NET Development for Project 2003 Samples from the Project 2003 SDK Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation.
Let's play “tag”. what is a tag? A tag is a keyword or descriptive term associated with an item as means of classification by means of a folksonomy...
Meeting # 82 Welcome to the Minnesota SharePoint User Group September 14 th, 2011 Metadata in SharePoint Donald Donais.
SharePoint Online – Developing Solutions for the Cloud Chris Mayo Microsoft Corporation
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Office Server Specific Web content management –Page structure, layouts, and controls –Publishing.
WikiPlus Configurations Configure WikiPlus elements to your needs.
1 © Xchanging 2010 no part of this document may be circulated, quoted or reproduced without prior written approval of Xchanging. MOSS Training – UI customization.
Reduce, Reuse, Recycle. Housekeeping… Download EventBoard Mobile and remember to fill out session evaluations… Phasers set to stun, mobile devices set.
Yaroslav Pentsarskyy Involved in SharePoint since 2003 SharePoint MVP (2009- Present) Blog: sharemuch.com.
The 2007 Microsoft Office System Servers Enterprise Content Management, Workflow and Forms Martin Parry Developer and Platform Group, Microsoft Ltd
Business Data Integration with MOSS 2007 Naveedullah Khan PMP, MCAD.NET Senior Consultant.
Software services delivering SharePoint, Mobile, and Business Intelligence solutions Understanding and implementing the remote provision pattern in SharePoint.
Ontolica Fusion 4.0 The easy Automation Tool for SharePoint Steen Jakobsen Fusion Principal Architect
Tom Resing | SharePoint Engineer, Jive Software Christopher Harrison | Microsoft Certified Trainer.
Virtual techdays INDIA │ November 2010 SharePoint 2010 – Your one stop shop for all portal requirements Saranya Sriram │ Developer Evangelist, Microsoft.
Converting SharePoint on- premise Apps to Office 365 Jos Auker-Woor M377.
Making the Most of Search in SharePoint 2013 Christina Wheeler.
Metataxis Can you really implement taxonomies in native SharePoint? Marc Stephenson March 2017.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development
Integrating SharePoint 2010 with Office 2010
CMS I – BASIC WEB EDITING INTRODUCTION TO THE CMS
Beyond the BDC\BCS Model
Upgrading from BDC to BCS
Business Connectivity Services in SharePoint 2010 and Office 2010
SPC Developer 6/25/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Accessing and Surfacing LOB Data in SharePoint 2010
SharePoint Site Admin Training
Microsoft Dynamics.
Getting Started with Dreamweaver
Overview of Social Computing in Microsoft SharePoint 2010
Enterprise Metadata in SharePoint 2013
PSC Group, LLc Office 365/SharePoint Online Migration traps and tricks
SharePoint Saturday Charlotte
Customizing the SharePoint Mobile Experience
Tailor your SharePoint 2013 social layer according to your needs
敦群數位科技有限公司(vanGene Digital Inc.) 游家德(Jade Yu.)
SharePoint 2010 ECM Under the Hood Brian Caauwe
St. Louis Day of Dot Net 2011 Building Web Parts for an Office 365 SharePoint Site Becky Bertram Independent SharePoint Consultant SharePoint MVP, MCSD.NET,
9/8/ :03 PM © 2006 Microsoft Corporation. All rights reserved.
Presentation transcript:

Code Tax: Programming With The Taxonomy API In SharePoint 2010 Patrick Tucker

About Me Patrick Tucker Strategic Data Systems, MS Gold Partner Principal Consultant, SharePoint MCT, MCTS, MCPD, MCITP, MCSD, MCAD, MCDBA Patrick.Tucker@sds-consulting.com | tuckersnet@live.com Blog: www.tuckersnet.com Twitter: @TuckersNet

The Managed Metadata Experience How do we interact with managed metadata in sharepoint?

Managed Metadata in SharePoint A way to do classification of content based on attributes Applies to documents, list items & pages at the column level Assists SharePoint in being a document management & collaboration platform Taxonomy and Folksonomy

Where Is Managed Metadata Surfaced? Managed Metadata Columns The Taxonomy picker Control The Document Information Panel Search

Managed Metadata and Taxonomy Managed Metadata Service Application Taxonomy Term Store Term Sets Managed Metadata Column Type

Taxonomy Term Store Available through Managed Metadata Service Comprised of system or admin created term sets Term sets may be global or local, open or closed Hierarchical Groups contain Term Sets Term sets contain terms Terms may have a default label and other labels (Synonyms)

Behind the Scenes Taxonomies are stored in a single database Each root site in a site collection contains a “TaxonomyHiddenList” The “Taxonomy Update Scheduler” timer job syncs hourly to update this list Taxonomy field values are implemented as lookup columns The “Managed Metadata” Field is actually comprised of multiple columns TaxonomyField TaxKeywordTaxHTField “TaxCatchAll” “TaxCatchAllLabel”

Managed Metadata Limitations Practical Limitations: Not supported in InfoPath forms Not supported in SharePoint Workspace Not supported in Datasheet views Limited Support in SPD Workflows Per TechNet, the recommended storage guidelines are: Max 7 levels of nesting in a term store Max 1000 term sets in a term store Max 30,000 terms in a term set Max 1 million total items in a term store

Working with the managed metadata service programmatically The Taxonomy API Working with the managed metadata service programmatically

Options Server side object model (Microsoft.SharePoint.Taxonomy) Sorry, not available to sandboxed solutions The Taxonomy Client Service Declarative XML PowerShell

Object Model Need to Reference Microsoft.SharePoint.Taxonomy DLL Entry point is a new Taxonomy Session, connects to MMS instance Classes in Taxonomy Namespace mirror Hierarchy Seen in Term Store Management Tool TaxonomySession class TermStore class (takes name of MMS Proxy) Group class TermSet class Term class (may contain nested terms)

So The Hierarchy Is… MMS Instance Term Store Groups Term Sets Terms

Terms, Keywords and Synonyms Terms are either managed terms or enterprise keywords Each Term may be marked as available for tagging Each term has a default label Synonyms are added under the “Other Labels” section Synonyms are exposed in code through a labels collection on each term. The default label is the first term in the collection.

Creating New Term Store Items In Code Get a reference to session . . . Term Store The termStore class contains a CreateGroup method The Group class contains a CreateTermSet method The TermSet class contains a create term method Tips to Remember . . . Adding items to the term store is transactional. We must remember to call “CommitAll()”

DEMO Traverse the hierarchy of groups, Term Sets and Terms Display the hierarchy in a tree view control via a custom web part Create a new group, term set and terms programmatically Retrieve and display the newly created terms

The Taxonomy Client Service The taxonomyclientservice.svc is available, but limited Operations to retrieve term store items and add terms are available

Taxonomy Client Service Navigate to http://sitecollectionUrl/_vti_bin/taxonomyclientservice.asmx Do you know the Guids of your term store and term Set? XML parsing is in your future

The Taxonomy Field Type Custom list definitions will need to create the field – Declaratively or programmatically (or both) This field is exposed in the UI via the taxonomy picker control Page layouts may also make use of this field type to tag pages as well as items and documents

Implementing a Taxonomy Field in a Custom List Create site columns (taxonomy & note field) Create content type and reference the columns Link the taxonomy field up to a term set Declarative approach Will need sspID and term set Guids in XML Programmatic approach also works with partial declarative code

Setting Taxonomy Field Values Allows the user to select term(s) to tag content The control shows up on new and edit forms The control may be used on custom page layouts

DEMO Use the taxonomy web service to display term store items Create a custom list definition that contains a managed metadata column Set a taxonomy field value for a list item in code

The Undiscovered Country What’s new with managed metadata in SharePoint 2013?

So What’s Changed in 2013? Managed Metadata Navigation Terms intended use may be for navigation Target pages are attached to terms and drive the navigation of the site CSOM – Client Side Object Model Support Available to .NET, Silverlight and JavaScript Projects may reference the Microsoft.SharePoint.Client.Taxonomy assembly Datasheet view support for the managed metadata column type Custom properties may be added to a term to store additional Data More than just additional labels, this is a dictionary of metadata for your metadata Exposed in the Taxonomy Term Store management UI and in code

Q and A Patrick.Tucker@sds-consulting.com | tuckersnet@live.com Blog: www.tuckersnet.com Twitter: @TuckersNet