SlideShare a Scribd company logo
Microsoft Dynamics CRM
SSRS Reports
What is SQL Server Reporting
Services?
• “SQL Server Reporting Services
(SSRS) is a server-based report
generation software system from
Microsoft. It can be used to
prepare and deliver a variety of
interactive and printed reports. It
is administered via a web
interface.
• Reporting services features a web services
interface to support the development of
custom reporting applications.
• SSRS competes with Crystal Reports and
other businessintelligence tools, and is
included in Express, Workgroup, Standard,
and Enterprise editions of Microsoft SQL
Server as an install option…”
MsD CRM-Custom Reports
• Custom Reports Contains Two Reports
• Fetch Xml Reports
• SQL Server Reports
What is Fetch Xml
• Fetch is a proprietary query language that is used
in Microsoft Dynamics CRM. It is based on a
schema that describes the capabilities of the
language.
• The FetchXML language supports similar query
capabilities as Query expression. It is used
primarily as a serialized form of query expression,
used to save a query as a user owned saved view
in the userquery entity or as an organization
owned view in the saved query entity.
Step:1
• You will need access to a Dynamics CRM 2011
Organization and have the proper security roles to
publish reports. This includes:
• Organization URL
• Organization Unique Name (Settings >>
Customization >> Developer Resources)
• UserName and Password for that organization
• You will need to have SQL Server Business
Intelligence Development Studio Installed with
the SQL Reporting Services components. (I am
using version 2008 R2)
Step:2
• First, we will need to open the Business
Intelligence Development Studio and
create a new project using the Business
Intelligence Project Type and the Report
Server Project Template.
Microsoft Dynamics CRM SSRS REPORTS
Next, we will create the report. To do this, right click on the Reports
folder in the Solution Explorer and select Add >> New Item (do not
choose Add New Report as this will create the report with the
Report Wizard).
Fetch XML in MS Dynamics CRM 2011
From the Add New Item window, select the Report
Template, give your Report a name (I am using
Account Report with PreFiltering) and click ADD.
Fetch XML in MS Dynamics CRM 2011
Next, we need to create the data source for the report. With
Dynamics CRM 2011 Reports, you should use a Data Source
embedded in the report, not a shared data source. To do this, in
the Report Data pane on the left side of Visual Studio, right click on
the Data Sources Folder and choose, Add Data Source.
• In the Data Source Properties window:
• Give the Data Source a Name (I am using CRMData)
• Select Embedded Connection of Type: Microsoft Dynamics CRM Fetch
• In the connection string box, enter the url of your CRM Organization
folowed by a semicolan and your organization unique name. You should
be able to copy and paste the first part of this from your web browser. I
am using https://test01.crm.njevitytogo.com;test01 (I Discovery Service
url)
• Click the Credentials tab
• Select 'Use this user name and password' and enter the user credentials
that you use when connecting to your CRM Organization.
• Then click OK
Microsoft Dynamics CRM SSRS REPORTS
Microsoft Dynamics CRM SSRS REPORTS
• Next, we need to create the dataset for the report. Because
we chose to use CRM Fetch in the previous step, we will be
using FetchXML as the query language. Fortunately, for
those of us who do not know how to write FetchXML
queries, there is a very simple way to do this: we will let
Advanced Find create the FetchXML for us!
• To do this, we will create an Advanced Find that contains
the columns we want on our report as well as the filters
that we want always applied to the report. For this
example, we will create an advanced find that returns
ACTIVE Accounts and displays a few relevant columns. So, in
Dynamics CRM 2011, navigate to an account list and click
the Advanced Find button.
Microsoft Dynamics CRM SSRS REPORTS
• Because I had the Active Accounts view
displayed on the Account List when I
opened Advanced Find, the Advanced
Find query automatically opens with the
Status = Active filter applied.
• Because we ONLY want active accounts
and we do not want the user to be able to
edit this filter, we will keep this filter in
place. We could add additional filters
here, just keep in mind that the users
cannot change these filters when they run
the report.
Microsoft Dynamics CRM SSRS REPORTS
• Next we will select the columns that we want to work with
on our report. To do this, click the Edit Columns button and
add and remove columns until you have the ones that you
want on the report. The order of the columns in the
Advanced Find is not relevant....
• Click the OK button to close the Edit Columns
window and return to the Advanced Find
window. At this point, you might want to run the
Advanced Find to make sure that the data set
looks right.
• Once you are comfortable with the dataset, click
the Download Fetch XML button in the Advanced
Find Ribbon.
• This will download an xml file that contains the
FetchXML query we just created. Save this on
your computer.
Microsoft Dynamics CRM SSRS REPORTS
• Next, copy the xml to your clipboard
and return to the report in Visual
Studio.
• Right click the Datasets folder in the
Report Data pane on the left side of
the Visual Studio window and select
Add Dataset.
Microsoft Dynamics CRM SSRS REPORTS
• On the Dataset Properties window:
1.Give your dataset a name. I am
calling mine AccountData.
2.Select the radio button labeled 'Use a
dataset embedded in my report'.
3.In the Data Source drop down, select
the data source you created in a
previous step.
4.Click the Query Designer button
Microsoft Dynamics CRM SSRS REPORTS
• In the text box at the top of the query
designer, paste the FetchXML you copied
from the XML File.
• Then click the Red Exclamation Point
button to execute the query.
• When the Define Query Parameters
window opens, leave the parameter value
for the CRM_account parameter blank and
click OK. This will return the same set of
records that were in the advanced find
query.
Microsoft Dynamics CRM SSRS REPORTS
• If you are happy with the results, click OK
to close the Query Designer, then click OK
to close the Dataset Properties window. If
you expand the Dataset, you should see
the list of fields just like below.
• Next, we need to edit the Parameter that
was automatically created for the Pre-
Filtering. In this case, the parameter is
called CRM_account.
• To edit this, right click the parameter and
select Parameter Properties.
Microsoft Dynamics CRM SSRS REPORTS
• On the Report Parameter Properties
window, select the radio button labeledselect the radio button labeled
'Internal'.'Internal'.
• This will prevent the user from being
prompted for a value for this parameter
when they run the report.
• Since we are getting this paramater value
directly from CRM, there is no need for the
user to interact with this parameter.
• Click OK to close this window.
Microsoft Dynamics CRM SSRS REPORTS
• At this point, you can design this
report just like you would any other
SRS Report. In this example, I have
added a title and table to the report
and put a few of the fields into the
table. When you are satisfied with
the report, save your changes.
Microsoft Dynamics CRM SSRS REPORTS
• Now, we need to upload the report
to Dynamics CRM 2011.
• To do this, we will log in to Dynamics
CRM 2011 and navigate to the Report
List (Workplace >> Reports) and click
the NEW button.
Microsoft Dynamics CRM SSRS REPORTS
• From the new report window:
1. Report Type: Existing File
2. File Location: Navigate to the RDL file that you
created in Visual Studio. Mine is called 'Account
Report with PreFiltering.RDL'
3. Name: This defaults from the RDL file name, but
you can change it if you wish
4. Related Record Types: This is the CRM Entity the
report is linked to. In this case, Accounts
5. Display In: Select:
i. Reports Area
ii. Forms for related record types
iii.Lists for related record types
Microsoft Dynamics CRM SSRS REPORTS
• Once this is done, click SAVE AND
CLOSE to upload and save the report
to Dynamics CRM 2011.
• Now, lets go run the report. Navigate
to the Account List. Select a few
accounts and click the Run Report
button in the Account Ribbon. You
should see the Account Report with
PreFiltering report in the list of
reports. Click it.
Microsoft Dynamics CRM SSRS REPORTS
• Choose to run the report on the
selected records.
• As you can see, the only Accounts that
are included on the report are the
ones that you selected.
• This is a successful implementation of
Pre-Filtering on the report.
Microsoft Dynamics CRM SSRS REPORTS
• Now, lets look at setting a default filter
on the report.
• To do this, return to the Reports List
(Workplace >> Reports) and find the
Account Report with PreFiltering
report on the list.
• Select it and click the EDIT DEFAULT
FILTER button in the Reports List
Ribbon.
Microsoft Dynamics CRM SSRS REPORTS
• On the Report Filter Criteria window, enter your filters just
like you would in Advanced Find. Notice that you have access
to every field and every relationship in CRM--not just the
ones included in the report.
• In this case, I am selecting to only display Accounts that were
created This Month and are in the City of Redmond.
• Click the SAVE DEFAULT FILTER button to save this as the
default filter on the report.
• When you do this, this will be the filter applied by default
when you run the report from the Reports List or from the
Account List when you select to run the report on applicable
records.
• If you run the report on the selected records as we did above,
that filter will replace the default filter.
Microsoft Dynamics CRM SSRS REPORTS
• Users may change the filter each time
they run the report by clicking the Edit
FILTER button in the top left corner of
the report.
Microsoft Dynamics CRM SSRS REPORTS
Microsoft Dynamics CRM SSRS REPORTS
Thank You
Naveen kumar.k
Microsoft Dynamics CRM

More Related Content

PPTX
Basic introduction to power query
PPTX
Data science.chapter-1,2,3
PPTX
Developing dynamics 365 reports in dynamics 365
PPT
Banco de Dados - NoSQL
PPTX
Sistemas de Gestão de Bases de Dados
PPTX
SQL Server Reporting Services (SSRS) 101
PDF
Aula1 - Apresentação de Banco de Dados
PDF
Market Basket Analysis of bakery Shop
Basic introduction to power query
Data science.chapter-1,2,3
Developing dynamics 365 reports in dynamics 365
Banco de Dados - NoSQL
Sistemas de Gestão de Bases de Dados
SQL Server Reporting Services (SSRS) 101
Aula1 - Apresentação de Banco de Dados
Market Basket Analysis of bakery Shop

What's hot (20)

PDF
Data Warehouse Tutorial For Beginners | Data Warehouse Concepts | Data Wareho...
PDF
Introdução ao MySQL
PPTX
Power BI.pptx
PPTX
Database administrator
DOCX
Modelo Relacional, Rede e Hierárquico
PDF
Banco de Dados II Aula Dinâmica 1 (Perguntas e Respostas)
PDF
Introduction To Database Management System
DOCX
Modelos de base de dados
PPTX
Mongodb vs mysql
PDF
Computação em nuvem
PPTX
Aula 4 banco de dados
PDF
Climbing the Ontology Mountain to Achieve a Successful Knowledge Graph
PPTX
Introduction to Tableau
PPTX
Degree of relationship set
PDF
Matéria de apoio (Base de dados)
PDF
Banco de Dados I - Aula 09 - Normalização de Dados
PPTX
[PowerBI] Primeiros Passos
PDF
Aula 7 - Modelagem de Software
PPTX
Data Warehousing (Need,Application,Architecture,Benefits), Data Mart, Schema,...
ODP
Dimensional Modelling
Data Warehouse Tutorial For Beginners | Data Warehouse Concepts | Data Wareho...
Introdução ao MySQL
Power BI.pptx
Database administrator
Modelo Relacional, Rede e Hierárquico
Banco de Dados II Aula Dinâmica 1 (Perguntas e Respostas)
Introduction To Database Management System
Modelos de base de dados
Mongodb vs mysql
Computação em nuvem
Aula 4 banco de dados
Climbing the Ontology Mountain to Achieve a Successful Knowledge Graph
Introduction to Tableau
Degree of relationship set
Matéria de apoio (Base de dados)
Banco de Dados I - Aula 09 - Normalização de Dados
[PowerBI] Primeiros Passos
Aula 7 - Modelagem de Software
Data Warehousing (Need,Application,Architecture,Benefits), Data Mart, Schema,...
Dimensional Modelling
Ad

Viewers also liked (9)

PDF
Укрощение programmatic: тренды, стратегии запуска, аналитика. Богунова/Риалвеб
PDF
Suite crm brochure fynsis
PPT
Inside Sales Compensation & Incentives Best Practices
PDF
Полезные отраслевые интеграции на базе amoCRM
PPT
Some sample crm reports
PDF
Cylande présentation crm services reports & segmentation - générique
PPSX
Crm presentation
PPT
Sales Incentive program examples
PPTX
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
Укрощение programmatic: тренды, стратегии запуска, аналитика. Богунова/Риалвеб
Suite crm brochure fynsis
Inside Sales Compensation & Incentives Best Practices
Полезные отраслевые интеграции на базе amoCRM
Some sample crm reports
Cylande présentation crm services reports & segmentation - générique
Crm presentation
Sales Incentive program examples
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
Ad

Similar to Microsoft Dynamics CRM SSRS REPORTS (20)

PPTX
Microsoft Dynamics CRM: Reporting and Dashboards
PPTX
BI Technical Dive
PDF
Découverte d'Einstein Analytics (Tableau CRM)
PPTX
Actionable Insight in Microsoft Dynamics CRM 2011
PPTX
Service Analysis - Microsoft Dynamics CRM 2016 Customer Service
PPT
Crm business intelligence
PDF
20 reasons to upgrade to microsoft dynamics crm 2011
PDF
Sap business objects xir3.03.1, bi 4.0 & 4.1 training
PDF
Microsoft Dynamics CRM Technical Training for Dicker Data Resellers
PPTX
Microsoft Dynamics CRM 2011 walkingthrough part 1
PPTX
Microsoft Dynamics CRM 2011 Walkthrough Part 1
PDF
xRM4Legal Email Marketing
DOCX
SAP BO ONLINE TRAINING
DOCX
New sap bo 4.0 course content
DOCX
New sap bo 4.0 course content
DOCX
New sap bo 4.0 course content
PPTX
Agile Methodology Approach to SSRS Reporting
PPTX
Dynamic DSM Tracking Software Features
DOCX
Sap business objects bobi training
DOC
BOBJ
Microsoft Dynamics CRM: Reporting and Dashboards
BI Technical Dive
Découverte d'Einstein Analytics (Tableau CRM)
Actionable Insight in Microsoft Dynamics CRM 2011
Service Analysis - Microsoft Dynamics CRM 2016 Customer Service
Crm business intelligence
20 reasons to upgrade to microsoft dynamics crm 2011
Sap business objects xir3.03.1, bi 4.0 & 4.1 training
Microsoft Dynamics CRM Technical Training for Dicker Data Resellers
Microsoft Dynamics CRM 2011 walkingthrough part 1
Microsoft Dynamics CRM 2011 Walkthrough Part 1
xRM4Legal Email Marketing
SAP BO ONLINE TRAINING
New sap bo 4.0 course content
New sap bo 4.0 course content
New sap bo 4.0 course content
Agile Methodology Approach to SSRS Reporting
Dynamic DSM Tracking Software Features
Sap business objects bobi training
BOBJ

More from Naveen Kumar (20)

PPTX
Microsoft SQL Server 2016
PPTX
Email Router Configuration - Gmail and microsoft dynamics crm 2016 online int...
PPTX
Microsoft Dynamics CRM Multi - Tier Architecture
PPTX
Marketing Automation - Part 3
PPTX
Marketing Automation - Part 2
PPTX
Marketing Automation - Part 1
PPTX
Sales force automation - Part 4
PPTX
Sales force automation - Part 3
PPTX
Sales force automation - Part 2
PPTX
Business process flows presentation
PPTX
Part 3 - DNS Configuration (IFD)
PPTX
Part 2 - Setup ADFS (Active Directory Federation Service)
PPTX
Part 1 - Binding Certificates (IFD)
PPTX
Unified Service Desk - Part 3
PPTX
Unified service desk - Part 1
PPTX
New Feature in CRM 2016
PPTX
Customizing document templates
PPTX
New client side features - Microsoft Dynamics CRM 2016
PPTX
Microsoft dynamics crm 2011 installation
PPTX
Business rulers in Microsoft Dynamics CRM 2013
Microsoft SQL Server 2016
Email Router Configuration - Gmail and microsoft dynamics crm 2016 online int...
Microsoft Dynamics CRM Multi - Tier Architecture
Marketing Automation - Part 3
Marketing Automation - Part 2
Marketing Automation - Part 1
Sales force automation - Part 4
Sales force automation - Part 3
Sales force automation - Part 2
Business process flows presentation
Part 3 - DNS Configuration (IFD)
Part 2 - Setup ADFS (Active Directory Federation Service)
Part 1 - Binding Certificates (IFD)
Unified Service Desk - Part 3
Unified service desk - Part 1
New Feature in CRM 2016
Customizing document templates
New client side features - Microsoft Dynamics CRM 2016
Microsoft dynamics crm 2011 installation
Business rulers in Microsoft Dynamics CRM 2013

Recently uploaded (20)

PDF
Pre independence Education in Inndia.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Business Ethics Teaching Materials for college
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pre independence Education in Inndia.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Supply Chain Operations Speaking Notes -ICLT Program
TR - Agricultural Crops Production NC III.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharma ospi slides which help in ospi learning
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Microbial disease of the cardiovascular and lymphatic systems
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
STATICS OF THE RIGID BODIES Hibbelers.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPH.pptx obstetrics and gynecology in nursing
Business Ethics Teaching Materials for college
Pharmacology of Heart Failure /Pharmacotherapy of CHF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

Microsoft Dynamics CRM SSRS REPORTS

  • 2. What is SQL Server Reporting Services? • “SQL Server Reporting Services (SSRS) is a server-based report generation software system from Microsoft. It can be used to prepare and deliver a variety of interactive and printed reports. It is administered via a web interface.
  • 3. • Reporting services features a web services interface to support the development of custom reporting applications. • SSRS competes with Crystal Reports and other businessintelligence tools, and is included in Express, Workgroup, Standard, and Enterprise editions of Microsoft SQL Server as an install option…”
  • 4. MsD CRM-Custom Reports • Custom Reports Contains Two Reports • Fetch Xml Reports • SQL Server Reports
  • 5. What is Fetch Xml • Fetch is a proprietary query language that is used in Microsoft Dynamics CRM. It is based on a schema that describes the capabilities of the language. • The FetchXML language supports similar query capabilities as Query expression. It is used primarily as a serialized form of query expression, used to save a query as a user owned saved view in the userquery entity or as an organization owned view in the saved query entity.
  • 6. Step:1 • You will need access to a Dynamics CRM 2011 Organization and have the proper security roles to publish reports. This includes: • Organization URL • Organization Unique Name (Settings >> Customization >> Developer Resources) • UserName and Password for that organization • You will need to have SQL Server Business Intelligence Development Studio Installed with the SQL Reporting Services components. (I am using version 2008 R2)
  • 7. Step:2 • First, we will need to open the Business Intelligence Development Studio and create a new project using the Business Intelligence Project Type and the Report Server Project Template.
  • 9. Next, we will create the report. To do this, right click on the Reports folder in the Solution Explorer and select Add >> New Item (do not choose Add New Report as this will create the report with the Report Wizard). Fetch XML in MS Dynamics CRM 2011
  • 10. From the Add New Item window, select the Report Template, give your Report a name (I am using Account Report with PreFiltering) and click ADD. Fetch XML in MS Dynamics CRM 2011
  • 11. Next, we need to create the data source for the report. With Dynamics CRM 2011 Reports, you should use a Data Source embedded in the report, not a shared data source. To do this, in the Report Data pane on the left side of Visual Studio, right click on the Data Sources Folder and choose, Add Data Source.
  • 12. • In the Data Source Properties window: • Give the Data Source a Name (I am using CRMData) • Select Embedded Connection of Type: Microsoft Dynamics CRM Fetch • In the connection string box, enter the url of your CRM Organization folowed by a semicolan and your organization unique name. You should be able to copy and paste the first part of this from your web browser. I am using https://test01.crm.njevitytogo.com;test01 (I Discovery Service url) • Click the Credentials tab • Select 'Use this user name and password' and enter the user credentials that you use when connecting to your CRM Organization. • Then click OK
  • 15. • Next, we need to create the dataset for the report. Because we chose to use CRM Fetch in the previous step, we will be using FetchXML as the query language. Fortunately, for those of us who do not know how to write FetchXML queries, there is a very simple way to do this: we will let Advanced Find create the FetchXML for us! • To do this, we will create an Advanced Find that contains the columns we want on our report as well as the filters that we want always applied to the report. For this example, we will create an advanced find that returns ACTIVE Accounts and displays a few relevant columns. So, in Dynamics CRM 2011, navigate to an account list and click the Advanced Find button.
  • 17. • Because I had the Active Accounts view displayed on the Account List when I opened Advanced Find, the Advanced Find query automatically opens with the Status = Active filter applied. • Because we ONLY want active accounts and we do not want the user to be able to edit this filter, we will keep this filter in place. We could add additional filters here, just keep in mind that the users cannot change these filters when they run the report.
  • 19. • Next we will select the columns that we want to work with on our report. To do this, click the Edit Columns button and add and remove columns until you have the ones that you want on the report. The order of the columns in the Advanced Find is not relevant....
  • 20. • Click the OK button to close the Edit Columns window and return to the Advanced Find window. At this point, you might want to run the Advanced Find to make sure that the data set looks right. • Once you are comfortable with the dataset, click the Download Fetch XML button in the Advanced Find Ribbon. • This will download an xml file that contains the FetchXML query we just created. Save this on your computer.
  • 22. • Next, copy the xml to your clipboard and return to the report in Visual Studio. • Right click the Datasets folder in the Report Data pane on the left side of the Visual Studio window and select Add Dataset.
  • 24. • On the Dataset Properties window: 1.Give your dataset a name. I am calling mine AccountData. 2.Select the radio button labeled 'Use a dataset embedded in my report'. 3.In the Data Source drop down, select the data source you created in a previous step. 4.Click the Query Designer button
  • 26. • In the text box at the top of the query designer, paste the FetchXML you copied from the XML File. • Then click the Red Exclamation Point button to execute the query. • When the Define Query Parameters window opens, leave the parameter value for the CRM_account parameter blank and click OK. This will return the same set of records that were in the advanced find query.
  • 28. • If you are happy with the results, click OK to close the Query Designer, then click OK to close the Dataset Properties window. If you expand the Dataset, you should see the list of fields just like below. • Next, we need to edit the Parameter that was automatically created for the Pre- Filtering. In this case, the parameter is called CRM_account. • To edit this, right click the parameter and select Parameter Properties.
  • 30. • On the Report Parameter Properties window, select the radio button labeledselect the radio button labeled 'Internal'.'Internal'. • This will prevent the user from being prompted for a value for this parameter when they run the report. • Since we are getting this paramater value directly from CRM, there is no need for the user to interact with this parameter. • Click OK to close this window.
  • 32. • At this point, you can design this report just like you would any other SRS Report. In this example, I have added a title and table to the report and put a few of the fields into the table. When you are satisfied with the report, save your changes.
  • 34. • Now, we need to upload the report to Dynamics CRM 2011. • To do this, we will log in to Dynamics CRM 2011 and navigate to the Report List (Workplace >> Reports) and click the NEW button.
  • 36. • From the new report window: 1. Report Type: Existing File 2. File Location: Navigate to the RDL file that you created in Visual Studio. Mine is called 'Account Report with PreFiltering.RDL' 3. Name: This defaults from the RDL file name, but you can change it if you wish 4. Related Record Types: This is the CRM Entity the report is linked to. In this case, Accounts 5. Display In: Select: i. Reports Area ii. Forms for related record types iii.Lists for related record types
  • 38. • Once this is done, click SAVE AND CLOSE to upload and save the report to Dynamics CRM 2011. • Now, lets go run the report. Navigate to the Account List. Select a few accounts and click the Run Report button in the Account Ribbon. You should see the Account Report with PreFiltering report in the list of reports. Click it.
  • 40. • Choose to run the report on the selected records.
  • 41. • As you can see, the only Accounts that are included on the report are the ones that you selected. • This is a successful implementation of Pre-Filtering on the report.
  • 43. • Now, lets look at setting a default filter on the report. • To do this, return to the Reports List (Workplace >> Reports) and find the Account Report with PreFiltering report on the list. • Select it and click the EDIT DEFAULT FILTER button in the Reports List Ribbon.
  • 45. • On the Report Filter Criteria window, enter your filters just like you would in Advanced Find. Notice that you have access to every field and every relationship in CRM--not just the ones included in the report. • In this case, I am selecting to only display Accounts that were created This Month and are in the City of Redmond. • Click the SAVE DEFAULT FILTER button to save this as the default filter on the report. • When you do this, this will be the filter applied by default when you run the report from the Reports List or from the Account List when you select to run the report on applicable records. • If you run the report on the selected records as we did above, that filter will replace the default filter.
  • 47. • Users may change the filter each time they run the report by clicking the Edit FILTER button in the top left corner of the report.