www.it-ebooks.info ffirs.indd iffirs.indd i 19/01/13 11:47 AM19/01/13 11:47 AM www.it-ebooks.info BEGINNING SHAREPOINT® 2013 DEVELOPMENT INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii PART I GETTING STARTED WITH SHAREPOINT 2013 CHAPTER 1 Introduction to SharePoint 2013 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 CHAPTER 2 Overview of the SharePoint 2013 App Model . . . . . . . . . . . . . . . . . . . . . . 33 CHAPTER 3 Developer Tooling for SharePoint 2013 . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 CHAPTER 4 Understanding Your Development Options . . . . . . . . . . . . . . . . . . . . . . . 89 CHAPTER 5 Overview of Windows Azure for SharePoint . . . . . . . . . . . . . . . . . . . . . . . 119 PART II FUNDAMENTAL SHAREPOINT 2013 DEVELOPMENT BUILDING BLOCKS CHAPTER 6 Developing, Integrating, and Building Applications in SharePoint 2013 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 CHAPTER 7 Packaging and Deploying SharePoint 2013 Apps . . . . . . . . . . . . . . . . . 175 CHAPTER 8 Distributing SharePoint 2013 Apps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 CHAPTER 9 Overview of the Client-Side Object Model and REST APIs . . . . . . . . . 219 CHAPTER 10 Overview of OAuth in SharePoint 2013 . . . . . . . . . . . . . . . . . . . . . . . . . . 255 PART III ADVANCED DEVELOPER TOPICS IN SHAREPOINT 2013 CHAPTER 11 Developing Integrated Apps for O ce and SharePoint Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 CHAPTER 12 Remote Event Receivers in SharePoint 2013 . . . . . . . . . . . . . . . . . . . . . 307 CHAPTER 13 Building Line-of-Business Solutions Using Business Connectivity Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 CHAPTER 14 Developing Applications Using O ce Services . . . . . . . . . . . . . . . . . . . 343 CHAPTER 15 Developing Workfl ow Applications for SharePoint 2013 . . . . . . . . . . . 369 APPENDIX A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399 INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407 ffirs.indd iffirs.indd i 19/01/13 11:47 AM19/01/13 11:47 AM www.it-ebooks.info ffirs.indd iiffirs.indd ii 19/01/13 11:47 AM19/01/13 11:47 AM www.it-ebooks.info BEGINNING SharePoint ® 2013 Development ffirs.indd iiiffirs.indd iii 19/01/13 11:47 AM19/01/13 11:47 AM www.it-ebooks.info ffirs.indd ivffirs.indd iv 19/01/13 11:47 AM19/01/13 11:47 AM www.it-ebooks.info BEGINNING SharePoint ® 2013 Development Steve Fox Chris Johnson Donovan Follette ffirs.indd vffirs.indd v 19/01/13 11:47 AM19/01/13 11:47 AM www.it-ebooks.info Beginning SharePoint® 2013 Development Published by John Wiley & Sons, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2013 by John Wiley & Sons, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-1-118-49584-1 ISBN: 978-1-118-49586-5 (ebk) ISBN: 978-1-118-65477-4 (ebk) ISBN: 978-1-118-65487-3 (ebk) Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and speci cally disclaim all warranties, including without limitation warranties of tness for a particular purpose. No warranty may be created or extended by sales or pro- motional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the pub- lisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with stan- dard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://book- support.wiley.com . For more information about Wiley products, visit www.wiley.com. Library of Congress Control Number: 2012955721 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its af liates, in the United States and other coun- tries, and may not be used without written permission. Microsoft and SharePoint are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated with any product or vendor mentioned in this book. ffirs.indd viffirs.indd vi 19/01/13 11:48 AM19/01/13 11:48 AM www.it-ebooks.info For my wife. —S F For the delights of my life, Heather, Courtenay, and Morgan. —D F For the loves of my life, Vicki, Sam, and Kate. —C J ffirs.indd viiffirs.indd vii 19/01/13 11:48 AM19/01/13 11:48 AM www.it-ebooks.info ffirs.indd viiiffirs.indd viii 19/01/13 11:48 AM19/01/13 11:48 AM www.it-ebooks.info [...]... INTRODUCTION TO SHAREPOINT 2013 Getting to Know SharePoint 3 4 Defining SharePoint by Function Defining SharePoint by User Introducing the User Interface Introducing the Structure Addressing the Needs of the Developer Extending SharePoint 2013 Breaking It Down for Developers 5 5 6 8 9 10 12 SharePoint 2013: The Platform 15 SharePoint Installation Types SharePoint 2013 Capabilities Site Collections and Sites SharePoint. .. Apps for SharePoint Deployment Models SharePoint- Hosted Autohosted Provider-Hosted 38 38 44 49 Summary Recommended Reading 52 53 CHAPTER 3: DEVELOPER TOOLING FOR SHAREPOINT 2013 SharePoint Development Across Developer Segments Web-Based Development in SharePoint Site Settings Developing SharePoint Applications Using SharePoint Designer Developing SharePoint Applications Using Napa Developing SharePoint. .. Started with SharePoint 2013 CHAPTER 1: Introduction to SharePoint 2013 CHAPTER 2: Overview of the SharePoint 2013 App Model CHAPTER 3: Developer Tooling for SharePoint 2013 CHAPTER 4: Understanding Your Development Options CHAPTER 5: Overview of Windows Azure for SharePoint www.it-ebooks.info c01.indd 1 19/01/13 10:23 AM www.it-ebooks.info c01.indd 2 19/01/13 10:23 AM 1 Introduction to SharePoint 2013 WHAT... FUNDAMENTAL SHAREPOINT 2013 DEVELOPMENT BUILDING BLOCKS CHAPTER 6: DEVELOPING, INTEGRATING, AND BUILDING APPLICATIONS IN SHAREPOINT 2013 Development Models Available in SharePoint 2013 Application Integration Options in SharePoint 2013 User Interface Integration Events and Logic Integration Data Integration 151 152 153 154 166 168 Summary Recommended Reading 171 173 CHAPTER 7: PACKAGING AND DEPLOYING SHAREPOINT. .. areas of SharePoint development Part I: Getting Started with SharePoint 2013 — Part I is about the fundamentals, and as such, covers the following areas: Chapter 1: Introduction to SharePoint 2013 — This chapter introduces you to the fundamental concepts and areas in SharePoint Chapter 2: Overview of SharePoint 2013 App Model — This chapter provides an overview of the new way in which you build SharePoint. .. solutions for SharePoint ➤ Leveraging many of the out-of-the-box features in your SharePoint development ➤ Integrating SharePoint and Microsoft Office ➤ Implementing OAuth and security in SharePoint This book does not cover earlier versions of SharePoint per se (you might fi nd references to how features have changed), but does cover areas that span SharePoint Foundation 2013, SharePoint Server 2013, and... Applications in SharePoint 2013 — This chapter focuses on some of the more common developer tasks that you’ll need to understand Chapter 7: Packaging and Deploying SharePoint 2013 Apps — This chapter discusses how you can use the developer tools to build and deploy SharePoint applications Chapter 8: Distributing SharePoint 2013 Apps — This chapter walks through the ways in which you distribute a SharePoint. .. to SharePoint, this won’t seem like such a radical evolution — especially those of you who are Web developers today However, for those of you who are returning SharePoint enthusiasts, SharePoint 2013 is quite an evolution for how you build and develop SharePoint applications What you’ll learn in this book is that SharePoint 2013 has a lot to offer the developer You can move from the small-scale development. .. JavaScript-based development approach In SharePoint 2013, you have the ability to bring your own hosted Web applications and technologies to the table and use OAuth authentication and registration hooks that are built into SharePoint to integrate those apps into the SharePoint experience This is a significant evolution, and one not to be undersold Similar to SharePoint 2010, SharePoint 2013 offers such... coverage of the following: ➤ Getting started with development for SharePoint 2013 ➤ Becoming familiar with tools that you will use to develop for SharePoint ➤ Becoming familiar with common SharePoint development tasks ➤ Understanding “the cloud” ➤ Programming against lists and developing custom Web Parts ➤ Integrating line-of-business (LOB) data with SharePoint and Microsoft Office ➤ Building and deploying . STARTED WITH SHAREPOINT 2013 CHAPTER 1: INTRODUCTION TO SHAREPOINT 2013 3 Getting to Know SharePoint 4 Defi ning SharePoint by Function 5 Defi ning SharePoint. 9 Extending SharePoint 2013 10 Breaking It Down for Developers 12 SharePoint 2013: The Platform 15 SharePoint Installation Types 16 SharePoint 2013 Capabilities