39,59 €
All of the data entered into a CRM means nothing if it is unable to report the important information to our managers and executives in such a way that they can easily and quickly get the results they need. A better reporting system would enable them to make the necessary improvements to the processes that any business needs in a dynamic business world.For users and developers wishing to take advantage of using the report capabilities of Dynamics CRM, this is the book for you.
Microsoft Dynamics CRM 2011 Reporting is a practical and excellent reference guide that provides you with a number of different options you can use to create and empower the Reporting capabilities of Dynamics CRM. This will give you a good grounding in using the reports in your Dynamics CRM 2011 implementations.
This book looks at all the different options we can use to create reports in Dynamics CRM 2011, starting with SQL Reporting Services and custom reports, created in either CRM Report Wizard, SQL Report Builder, or Visual Studio. It will also show other options we can use such as dashboards, charts, and different ways to optimize and automate reports.We will also learn how to build our own reports either using the different wizards for basic reports or using Visual Studio for more complex reports. We will explore the options mobile CRM users have who want to run and see reports on these mobile devices.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 194
Veröffentlichungsjahr: 2013
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2013
Production Reference: 1180613
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84968-230-5
www.packtpub.com
Cover Image by Sandeep Babu (<[email protected]>)
Author
Damian Sinay
Reviewers
Nishant Rana
James Wood
Acquisition Editor
Vinay Argekar
Commissioning Editor
Shreerang Deshpande
Lead Technical Editor
Mayur Hule
Technical Editors
Sharvari Baet
Jeeten Handu
Veena Pagare
Akshata Patil
Kaustubh S. Mayekar
Copy Editors
Insiya Morbiwala
Aditya Nair
Alfida Paiva
Laxmi Subramanian
Project Coordinator
Leena Purkait
Proofreaders
Aaron Nash
Paul Hindle
Indexer
Tejal R. Soni
Graphics
Abhinash Sahu
Production Coordinator
Conidon Miranda
Cover Work
Conidon Miranda
Damian Sinay has over 15 years experience in the software development and IT industry. He started working with the .NET framework when its first Version 1.0 was in the beta stage. In 2002, he won first prize in the "Building solutions based on XML Web Services" contest, which spanned across Latin America, by Microsoft. In 2006, he wrote his first book in his native language (Spanish) on web services with C# development.
He started working with CRM solutions prior to the first release of Microsoft Dynamics CRM's initial version. Since then, he has exclusively been developing and implementing solutions for Dynamics CRM and SharePoint. He is certified in Versions 3.0, 4.0, and 2011 including development, installation, configuration, and implementation of Dynamics CRM. He has around 18 Microsoft certifications (MCP) in SQL, C#, ASP.NET, TFS, Project, CRM, and SharePoint 2007 and 2010. Among many other things, he has co-authored the Dynamics CRM unleashed books for Versions 4.0 and 2011.
He held the Microsoft Most Valuable Professional (MVP) award in Dynamics CRM in 2012 and serves as the CEO of Remoting Coders, a Microsoft Partner company that is turning 10 years old in 2013, providing solutions using Microsoft products and technologies.
You can contact Damian at <[email protected]>, follow him on Twitter at @damiansinay, and can also read the blog at http://www.remotingcoders.com/Blogsite/.
I would like to especially thank my wife Carina Godoy de Sinay and my kids who have been positive and unconditional supporters.
I would also like to thank my clients, my colleagues, Microsoft MVPs, the Microsoft CRM product team, and my partners who have provided invaluable opportunities for me to expand my knowledge and shape my career.
Nishant Rana currently works at Microsoft Services Global Delivery (MSGD). He has done his specialization in the Microsoft .NET technology and has been actively involved with it since its release. His main focus area has been Microsoft Dynamics CRM and SharePoint. He is a Microsoft Certified Technology Specialist and an IT professional in Dynamics and SharePoint, and a MCAD (Application Developer) for .NET.
He has also reviewed the book entitled Microsoft Dynamics CRM 2011 Application Design, Mahendar Pal, Packt Publishing.
You can contact Nishant via his website or Twitter account:
http://nishantrana.wordpress.com/
https://twitter.com/nishantranaCRM
I would like to thank my family and my friends for their love, care, and support.
James Wood is a consultant at Gap Consulting with skills in the end-to-end implementation of enterprise-level Microsoft Dynamics CRM solutions. He graduated from the University of Huddersfield with a First Class degree in Computer Games Programming before making the switch to business applications.
He has worked with Microsoft Dynamics CRM for three years and is an able developer of bespoke applications. He has worked on a number of small to large implementations in sectors including local and regional government, education, defense, banking, manufacturing, and welfare.
He has also worked as a technical reviewer for Microsoft Dynamics CRM 2011 Application Design and Microsoft Dynamics CRM 2011: An expert cookbook for securing, customizing, and extending your CRM apps.
You can read his blog at www.woodsworkblog.wordpress.com.
I would like to thank my family and friends for everything—especially Mum, Dad, Rob, and Chloё.
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page.
Microsoft Dynamics CRM 2011 Reporting is a practical reference guide that provides you with a number of different options you can use to create and empower the reporting capabilities of Dynamics CRM. This will give you a good grounding for using the reports in your Dynamics CRM 2011 implementations.
Chapter 1, Introduction to Reporting in Microsoft Dynamics CRM explains the different types of reports we can use in Dynamics CRM. Further, it explains SQL Server Reporting Services (SSRS) and how to install the Dynamics CRM 2011 Extensions. It also covers how to install the Microsoft Dynamics CRM 2011 Report Authoring Extension, which we are going to use and explain later in this book.
Chapter 2, Database Basics explains the entity-relationship model of Dynamics CRM; we will review the basic and advanced commands of the SQL language as well as the FETCH XML language that we will need to use in order to create the queries we will use in our reports. We are going to keep using these two languages in the following chapters.
Chapter 3, Creating Your First Report in CRM helps us to create our first report using the Report Wizard and also to export the report to be edited with Visual Studio 2008, where we will make some customizations to reupload the report in Dynamics CRM. We will also see how to publish the report to be visible on the Reporting Server manager for external use.
Chapter 4, SQL Server Report Builder helps us to create our first report using the Report Builder and shows us the features we can use that were not available in the standard CRM Report Wizard. We will also create an advanced report using the Map Wizard, where we will show the records held by the USA.
Chapter 5, Creating Contextual Reports explains the advanced tools and controls we can use to create reports with Visual Studio. We will review the CRM Report parameters and the chart controls. This chapter explains the differences between the data source and datasets, and finally looks at how to use the groups, drill-down and collapsible controls in reports.
Chapter 6, Creating Inline Reports shows us how we can embed a report inside any entity form by creating a custom solution that uses an HTML web resource. We will also see how to implement this custom solution on the account entity using the account overview report. We will then review the development toolkit, which will help us work in a more organized manner with custom CRM solutions to get the benefit of IntelliSense. The deployment capability also allows us to integrate our source code with a source controller software, such as the Team Foundation server.
Chapter 7, Using Reports and Charts in Dashboard shows us how we can integrate a report in a CRM Dashboard and explains the chart basics as well as more advanced details; this is always a good option to display important information about the CRM system if we don't want to use reports.
Chapter 8, Advance Custom Reporting and Automation shows us how we can integrate a custom ASP.NET or Silverlight application to show a dynamic or more sophisticated report inside Dynamics CRM 2011. We will look at the different ways to bind CRM data by using early or late binding methods, and finally we will look at some ways to automate SSRS reports by either using scheduling or by automating export report generation with code.
Chapter 9, Failure Recovery and Best Practices shows us how we can troubleshoot different authentication issues we might face when working with reports in Dynamics CRM, as well as the different ways to improve the report development performance and deployment by using some of the best practices for SQL Reporting Services.
Chapter 10, Mobile Client shows us the new features of Dynamics CRM and SQL Server 2012 to show and run reports on mobile devices, such as iPhone, iPad, and Surface. We will look at how to configure the IFD authentication so we can give external users access to our on-premise CRM environment.
Appendix, Expression Snippets shows us some basic expressions and how we can use them in our reports; we will learn how to use constants, variables, and functions, as well as using external .NET assemblies by using the references. Finally, we will look at the user interaction controls that will help us interact with the users.
This book is an indispensable guide for users and developers new to Dynamics CRM Reports and SQL Server Reporting Services, and who are looking to get a good grounding in using the reporting capabilities of Dynamics CRM 2011. It's assumed that you will already have some experience in HTML and JavaScript to build advanced reports, but no previous programming experience is required to build and learn how to create some basic to intermediate reports, which will be used for the exercises within this book.
Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply send an e-mail to <[email protected]>, and mention the book title via the subject of your message.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the erratasubmissionform link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.
Please contact us at <[email protected]> with a link to the suspected pirated material.
We appreciate your help in protecting our authors, and our ability to bring you valuable content.
You can contact us at <[email protected]> if you are having a problem with any aspect of the book, and we will do our best to address it.
Microsoft Dynamics CRM 2011 makes extensive use of reporting, which we will be covering through this entire book. Reporting is a very important piece of any system that is heavily used by managers or upper management roles, such as the CEO and COO, of any enterprise. In this chapter we will cover:
Microsoft Dynamics CRM 2011 allows different types of reports; not only can the SQL Reporting Services reports be used, but other custom reports, such as Crystal Reports, ASP.NET, or Silverlight reports can also be integrated.
Dynamics CRM can manage the following types of reports:
The RDL files can be created in either of the following two ways:
Dynamics CRM 2011 comes with 54 predefined reports out of the box; 25 of them are main reports and 29 are subreports. If for some reason you don't see any report as shown in the following screenshot, it means Dynamics CRM 2011 Reporting Extensions were not installed. This is something that can only happen for on-premise environments; if you are working with CRM Online, you don't need to be worried about any report-extension-deployment tasks.
Reports in Dynamics CRM have the following settings or categories that you can access by clicking on the Edit button of each report, as shown in the following screenshot:
In the Report: Account Summary window you will see two tabs, General and Administration.
The Administration tab will show the name of the owner of the report, when the report was created or updated and who did it, and whether it is viewable to the user or the entire organization.
In the General tab, you will see the name of the report and the description. If it is a subreport, we will see the parent report displayed. Lastly, in the Categorization section, you can see the following settings:
We will study each of these settings in detail.
By default, there are four categories created out of the box in every CRM organization:
You can change, add, or remove these categories by navigating to Settings | Administration | System Settings | Reporting as shown in the following screenshot:
These report categories are used so that you can filter reports by each category when the predefined views are available in the main Reports interface, as shown in the following screenshot:
Notice that if you add a new category, you will also have to create the view as it won't be created automatically.
The Related Record Types option allows you to select what entities you want the report to be displayed under.
The reports will be listed under the Run Report button that is on the Ribbon. There are two locations where the report will be listed on the entities you selected: the home page grid and the form.
The home page grid is where you see all the records of an entity (depending on the view you selected) as shown in the following screenshot:
Almost every entity in Dynamics CRM has a RunReport button. As you can see, there are some reports that can run on the selected records and there are others that only run on all records. We will see how to configure this in detail when we go deeper into report development with Visual Studio in Chapter 5, Creating Contextual Reports.
The form is the second place where the Run Report button is located and it is visible on the form record that you will see when you open a record; the report will only affect that record.
As we saw in the Related Record Types option, we can decide here where we want to show our report. The options are:
The first option will make the report available on the Run Report button, which is on the form ribbon of an entity record as we have seen earlier.
The lists for the Related Record Types option appears on the home page grid ribbon button.
The Reports area refers to the main reporting interface that is in the Workplace.
This last option of the Categorization section allows us to specify the language of the report. We have the option of selecting all the languages on the list if you want your single report to be displayed in any of these languages. This is helpful if we have the different language packs installed on the CRM Server and the organization has people from different countries who understand different languages. By default all the reports are based on the local language.
