Book Image

Microsoft Dynamics CRM 2011 Reporting

By : Damian Hernan Sinay
Book Image

Microsoft Dynamics CRM 2011 Reporting

By: Damian Hernan Sinay

Overview of this book

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.
Table of Contents (18 chapters)
Microsoft Dynamics CRM 2011 Reporting
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

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.

What this book covers

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.

What you need for this book

  • Windows Server Standard Edition 2008 R2 or 2012

  • SQL Server 2012 with SP1/2008 R2 with SP2

  • Visual Studio 2008/2010 installed by the SQL Server development tools

  • Dynamics CRM 2011 with RU 13 and/or CRM Online

  • Visual Studio 2012 for custom reports in ASP.NET and Silverlight

Who this book is for

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.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "To group you add the aggregate='true' attribute to the fetch node."

A block of code is set as follows:

<fetch version="1.0" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="telephone1" />
  </entity>
</fetch>

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

DataTable accounts = new DataTable("Accounts");
            accounts.Columns.Add("name");
            accounts.Columns.Add("accountid");
            string fetchQuery = @" 
                <fetch distinct='false' mapping='logical' > 

Any command-line input or output is written as follows:

declare @name as varchar(160)
declare @revenue as money

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Check the checkbox that says I accept this license agreement and click on I Accept to continue".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

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 , 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.

Customer support

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.

Downloading the example code

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.

Errata

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 errata submission form 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

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 with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.