


















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
reporting note about dynamics 365. this contains information about dynamics 365 crm for use
Typology: Study Guides, Projects, Research
1 / 90
This page cannot be seen from the preview
Don't miss anything!



















































































Version: 8.
View the latest version of this document online.
report snapshots at certain intervals. This feature is currently available only with Dynamics 365 (on- premises). For more information about creating and editing reports in Microsoft Dynamics 365, see Customize and organize reports.
The reporting infrastructure in Microsoft Dynamics 365 (online) has RDL sandboxing enabled.
Therefore, custom code in report definitions will not work. RDL sandboxing for Microsoft Dynamics 365 (online)
Get started writing reports
Working with Microsoft Dynamics 365 reports
Working with SQL-based reports (Dynamics 365 on-premises only)
Test and troubleshoot reports
Publish reports
Report considerations and best practices
Example reports
Copy reports between Microsoft Dynamics 365 (on-premises) deployments
Customize Microsoft Dynamics 365 Power BI content packs
Referenced topic 'd0d49a86-6297-4431-8b30-1f477bca2bad' is only available online.
Referenced topic '9f201f30-245a-458e-b15f-961a9d049ea7' is only available online.
Referenced topic '633e9a2d-cba1-4700-ba18-01487767109c' is only available online.
Referenced topic '605bb886-116a-4275-83fe-e9fdc83d2f2f' is only available online.
© 2016 Microsoft. All rights reserved. Copyright
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Microsoft Dynamics 365 uses Microsoft SQL Server Reporting Services report definition language (RDL) reports to query Dynamics 365 data and return refined results back to the report user. For more information about RDL, see TechNet: Report Definition Language (SSRS).
To create or modify existing RDL reports that can be used with Microsoft Dynamics 365, use either T- SQL or FetchXML, which is then converted to RDL by using report authoring tools. The following table lists the differences between SQL-based and Fetch-based reports in Microsoft Dynamics 365.
Area SQL-based report Fetch-based report
Supported Microsoft
Dynamics 365 (on-premises) Microsoft Dynamics 365 (online) and Dynamics 365 (on-premises)
Area SQL-based report Fetch-based report
Dynamics 365 Versions
Report Query Language
Uses Transact-SQL (T-SQL)—a set of programming extensions that provide comprehensive transaction control by using Structured Query Language (SQL). More information: TechNet: Transact-SQL Reference (Database Engine)
Uses FetchXML—an extensible markup language (XML) designed specifically for Microsoft Dynamics 365 queries. More information: MSDN: FetchXML schema
Requires Report Authoring Extension?
No Yes
.RDL file Data Provider
The
The
.RDL file Report Query
The query specified for retrieving data is in the
The query specified for retrieving data is in the
If you want, you can use a third-party tool, SQL2FetchXML, to convert your SQL scripts to FetchXML, and then use the FetchXML query in your Fetch-based reports. More information: SQL2FetchXML Help
This section covers what you need to create a new Microsoft Dynamics 365 report.
Report writing environment using SQL Server Data Tools
Create a new report using SQL Server Data Tools
Report & Analytics with Dynamics 365
reports. Microsoft Dynamics 365 Report Authoring Extension must be installed on the computer where Microsoft Visual Studio and SQL Server Data Tools are installed. Download: CRM 2016 Report Authoring Extension. For installation instructions, see Install Microsoft Dynamics CRM Report Authoring Extension.
Note
Microsoft Dynamics 365 Report Authoring Extension is available only in a 32-bit version.
To deploy custom reports to Microsoft Dynamics 365, you must have a Microsoft Dynamics 365 account and a security role assigned to you that includes the PublishReport privilege. By default, the System Customizer and System Administrator security roles include these privileges.
The following lists the steps for developing custom Microsoft Dynamics 365 reports. You may have to repeat some steps while you develop a report:
365 (online) users can only create custom Fetch-based reports. More information: Report & Analytics with Dynamics 365
Microsoft Visual Studio.
Create a new (custom) report. More information: Create a new report using SQL Server Data Tools
Download an existing Microsoft Dynamics 365 report definition language (.rdl) file. You can do this in the Microsoft Dynamics 365 web application. More information: Modify an RDL file Alternatively, for Dynamics 365 (on-premises), reports are located in the C:\Program Files\Microsoft Dynamics 365 Reporting Extensions\LangPacks<lcid>\Reports\MSCRM\ folder where Microsoft Dynamics 365 Reporting Extensions is installed. More information: Modify an existing SQL-based report using SQL Server Data Tools
For SQL-based reports, create datasets that contain Microsoft Dynamics 365 data obtained from the filtered views. More information: Filtered views in Microsoft Dynamics 365
Enable pre-filtering on the primary entities. More information: Improve report performance by using filters
navigation
troubleshoot reports
Publish reports
Use SQL and filtered views to retrieve data for reports Report & Analytics with Dynamics 365 Create a new report using SQL Server Data Tools Getting Started with Custom Reports in the Cloud Business Intelligence Development Studio Report Designer and Business Intelligence Development Studio
© 2016 Microsoft. All rights reserved. Copyright
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
SQL Server Data Tools is a report authoring environment that lets you create or edit Microsoft SQL Server Reporting Services reports in Microsoft Visual Studio. The end result is a report definition .rdl file that contains the report definition that you can publish in Microsoft Dynamics 365 to view reports.
You can also author reports by using a common text editor. To reduce the effort to create a custom report, modify an existing .rdl file that provides most of the desired functionality. For more information about the format of the XML elements in an .rdl file, see Report Definition Language Reference. The modified report XML can be verified by using the specified XML schema. Reporting Services will also verify the report definition and reject a report if the definition is invalid when you try to upload the report in Microsoft Dynamics 365.
Note
If the .rdl file contains a FetchXML query, the query in the RDL is validated by Microsoft Dynamics 365 Report Authoring Extension, which internally validates it against the FetchXML schema. For more information, see MSDN: Fetch XML Schema.
Create a custom Fetch-based report (Dynamics 365 (online) and Dynamics 365 on-premises)
Create a custom SQL-based report (Dynamics 365 on-premises only)
More information: MSDN: Build queries with FetchXML Click Next.
With More Than 5,000 Employees. Click Finish.
This generates an .rdl file with the specified report name. You can use this file to publish your custom report in Microsoft Dynamics 365 (online) using the Report Wizard. More information: Publish reports
To create a custom SQL-based report using SQL Server Data Tools:
and the necessary privileges. More information: Report writing environment using SQL Server Data Tools
details:
Name : Type a name for the data source.
Type : Select Microsoft SQL Server.
Connection String : Specify the connection string to connect to the instance of the Microsoft SQL Server database. To build the connection string, and click Edit to type the SQL Server name and organizationName _MSCRM database. To supply credentials, select Credentials. Click Next.
example, to create a report that displays all accounts with 5,000 or more employees, where OrgName _MSCRM is the name of the organization database, use this query.
Use OrgName_MSCRM Select Name, AccountNumber, NumberofEmployees from AccountBase where NumberofEmployees > 5000 order by NumberofEmployees desc Or you can design a query by choosing Query Builder.
Next.
With More Than 5,000 Employees. Click Finish.
This generates an .rdl file with the specified report name. You can use the .rdl file to publish your custom report in Microsoft Dynamics 365. More information: Publish reports
For more information about how to create a report by using the Report Designer, see Create a Basic Table Report (SSRS Tutorial).
Report writing environment using SQL Server Data Tools Modify an existing SQL-based report using SQL Server Data Tools Blog: Getting Started With Custom Reports In The Cloud
© 2016 Microsoft. All rights reserved. Copyright
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
This section describes the different features that are available to determine how reports display in Microsoft Dynamics 365.
Format report content
Add report navigation
Categorize and display reports in different languages
Use parameters in reports
Report & Analytics with Dynamics 365 Working with SQL-based reports (Dynamics 365 on-premises only)
The fn_GetFormatStrings function returns the number of format strings with precision values between 0 and 5. You can specify a precision by putting a decimal value between the underscore characters in the field name.
Formatting string Report item Format property value
Integer =First(Fields!NumberFormat_0_Precision.Value, "DSNumandCurrency")
Decimal with 2-decimal points precision =First(Fields!NumberFormat_2_Precision.Value, "DSNumandCurrency")
The fn_GetFormatStrings function returns base currency format strings with precision values between 0 and 5. You can specify a precision by putting a decimal value between the underscore characters in the field name.
Formatting string Report item Format property value
Base currency with 2-decimal points precision =First(Fields!CurrencyFormat_2_Precision.Value, "DSNumandCurrency")
When you create a report on an entity with the transaction currency information, you can retrieve the transaction currency format string from the crm_moneyformatstring column of the filtered view for an entity. After a column has been added to the dataset, you can reference the column on the Format property of the report. For information about how to add columns to a dataset, see MSDN: How to: Add, Edit, or Delete a Field in the Report Data Pane. For example, to retrieve a price unit and the transaction currency formatting information from the quote detail filtered view, use the following SELECT statement.
SELECT priceperunit, crm_moneyformatstring FROM FilteredQuoteDetail
You can reference a new column in the Format property of the report item as follows:
=Fields.crm_moneyformatstring.Value
Working with SQL-based reports (Dynamics 365 on-premises only) Add report navigation
© 2016 Microsoft. All rights reserved. Copyright
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Report navigation enables a dynamic and interactive reporting experience. By using various types of actions, reports let the user navigate to detailed reports, Microsoft Dynamics 365 records, or other websites.
Note
For more information about report navigation, see Drillthrough, Drilldown, Subreports, and Nested Data Regions (Report Builder and SSRS) in the Microsoft SQL Server documentation. This topic describes report navigation that is specific to Microsoft Dynamics 365 reports.
You can drill through a report to navigate to a Microsoft Dynamics 365 web form. A drill-through report is implemented in the following steps:
contains code that builds a URL by using the base address of Microsoft Dynamics 365 plus parameters that refer to a specific record.
URL passed as the target web address.
displayed in the browser window.
information about adding parameters, see Use parameters in reports. When the report is run, this parameter is automatically set to the web address of Microsoft Dynamics 365.
= Parameters!CRM_URL.Value & "?ID={"& GUID &"}&LogicalName=entity logical name" The entity GUID and entity logical name have to be added to the URL to be able to drill through. For example:
= Parameters!CRM_URL.Value & "?ID={"&Fields!Opportunityid.Value.ToString()&"}&LogicalName=opportunity"
Report & Analytics with Dynamics 365 Use parameters in reports
© 2016 Microsoft. All rights reserved. Copyright
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
You use parameters in reports to control the data retrieved by prompting the user for a value or a set of values when the user runs the report. The dataset query retrieves only the data that is requested by the user. You can also add hidden and special parameters in the reports that do not prompt the user for input, but can be used for operations such as data filtering and dynamic drill-through.
Note
The maximum length of the parameter values that are passed in from Microsoft Dynamics 365 is 2, characters. For example, if you run a report and create a data filter through the Advanced Find user interface, the resulting filter expression that is passed to a filter parameter cannot exceed 2, characters. There is no maximum limit on the number of parameters that you can specify. However, you might have to limit the length of the string on the URL line and number of parameters to meet the requirements of a particular browser.
Adding parameters
Hidden parameters
You can add parameters to a report to define a report’s individual parameters, pass information through a query, or provide access to user settings, such as CRM_CurrencySymbol and CRM_CurrencyPositivePattern parameters.
The
<
ReportParameter
Name
="CRM_FilteredAccount"
>
<
Query
>
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
set @sql = '
SELECT top 10 CAST(accountid as nvarchar(100)) as AccountID,
name, '''' as None
FROM (' + @FilteredAccount + ') as fa'
exec(@sql)