1. An overview of Dynamics CRM Online and advantages over On Prem CRM
About Dynamics CRM
Microsoft Dynamics 365 helps in managing sales and client support, as well as optimizing internal processes, and is available in both online and on-premises versions.
Both versions of the CRM have identical core features and possibilities of expanding, and custom settings from the on-premises version can be moved to the online one (and vice versa).
Advantages of Online CRM
There are also significant differences between the two versions of CRM, and it is imperative to understand those differences before making a choice for business. Here are some clear advantages of the online CRM as opposed to the on-prem version:
- The online version is a true cloud version or a Software as a Service (SaaS) application. This means that multiple companies use the same infrastructure (it is not dedicated to one company).
- The online version fully supports integration with Microsoft PowerBI and it is easy to setup the connection.
- Staying updated with latest versions automatically ensures that large and time-consuming upgrades are avoided.
- Less upfront and ongoing costs because you don't need the IT infrastructure or maintenance.
- CRM Online is secure and reliable and has a super robust disaster recovery scenario.
- Immediate access to new features for Dynamics CRM as soon as they are released. Access to some features that are ONLY available in CRM Online.
Unlock Complete White Paper
Enter business email to read the full unabridged paper.
Microsoft Dynamics 365 cloud updates that are not available or partially available in the on-premises version include:
- PowerBI integration.
- Recurring API integrations.
- Microsoft Office integration.
- SSRS scale out.
- Data task automation.
- SSRS Report Viewer control.
But the online version also has certain limitations:
- You do not have direct access to the SQL database in the online version. As a result, to access the data you need to fetch XML and API calls vs SQL queries.
2. Dynamics CRM reporting – Native and Custom
Standard CRM Reporting Options
CRM provides certain inbuilt capabilities to generate reports. For building these default reports, data is retrieved from the database through the use of functions such as Data Sources and Datasets. Data Sources control the connection to the database, and the Dataset controls the actual information retrieved.
Once the report can reach a database, the Dataset has to be configured and set up. The reporting system allows data to come from Tables, Views, or Stored Procedures within the database. A query can be built within the report, accessing these various sources, in order to create the kind of report you need.
If you need to restrict the report access to certain target audience, then you can use Filtered Views to filter and limit the data that is pulled out from the database and presented in the reports.
Users can build reports using the following standard options:
- Use the Advanced Find / Export to Excel to create custom views or export the required excel reports
- Native feature of Views & Charts to build non-tabular reports
- Out of Box capability to build reports using Report Wizard of CRM.
Advanced Custom CRM Reporting Options
When an advanced report is necessary, there are several toolsets that can be utilized to develop the report. With Report Builder, you can build the reports with minimal programming and development knowledge. The tool contains wizards to easily construct or modify reports.
- Business Intelligence Development Studio: The most common tool used to build reports is the BIDS (Business Intelligence Development Studio) suite. Any installation of SQL Server has the BIDS suite included as one of the client tools on server installation; you just need to install it.
- SQL Server Data Tools with Microsoft Dynamics 365 Report Authoring Extension: The final of the common report builder tools for Dynamics 365 is an extension that is applied to the BIDS suite. The primary purpose of this tool is to allow a report to use an extra data source: Fetch XML.
- FetchXML: This is the only option to write queries when it comes to Dynamics 365 online custom reporting. You can still use visual studio (BIDs/SQL Server Data Tool) for creating FetchXML based reports. You need Visual Studio 2008 Service Pack 1 or higher and need to install a plugin (extension) that enables FetchXML based reporting. It is called Microsoft Dynamics CRM 2011 Report Authoring Extension.
SQL Reporting Services Reports are the standard reporting for CRM 2011 as they have been since version 3.0. The development environment utilizes traditional SQL reporting tools however with CRM 2011 online we can now access the data using FetchXML and the Report Authoring Extension. Reports extend the capabilities of the built-in features such as Advanced Find and Charts as well as more advanced calculations, grouping, and visualizations such as gauges and spark lines.
Using FetchXML
Fetch is a proprietary query language that is used in CRM and supports similar query capabilities as query expression. FetchXML supports all the features of Query Expression plus aggregates and grouping. Queries are built as XML statements that conform to the schema definition for the FetchXML language. Fetch has always been used in Microsoft Dynamics CRM but with 2011 support is provided for reporting using the Report Authoring Extension.
Since FetchXML is new and still evolving, it has some limitations over SQL based reporting. Here are some of the challenges/limitations of FetchXML based reporting:
- If the reporting need is too complex, developing SSRS report with FetchXML becomes impossible.
- Cannot be used on non-CRM databases.
- It has limitations on the number of entities that you can link in the queries. The maximum number of returned records is 5000
- On-line Reports cannot use non-CRM online data sources
- Data Warehousing and other Business Intelligence initiatives would require local data which could mean a local database and SSIS packages to retrieve CRM data
Reporting requirements beyond Fetch XML
You may encounter reporting requirements that are beyond what can be done with Fetch XML. If your Dynamics 365 is online, then, since you do not have control over the CRM Online database, you would need to have access to CRM data using some other means.
You might consider writing integration packages that replicate the Dynamics 365 online data needed for reporting to a local SQL server instance and you can write SSRS reports locally using SQL queries. You can also use DES procedure to setup a DB accessible to us with required data.
The reports written locally can be accessed from Dynamics 365 reports area making it appear to the users that they are running the reports from within Dynamics 365 by hiding all the details behind the scene. This makes complex reporting possible even with Dynamics 365 online.
3. Setting up Database
Dynamics CRM Online Data and its limitations on accessibility
One of the key requirements for any CRM implementation is replication of data so that reports can be generated. In Dynamics CRM Online, the lack of direct database access can provide some challenges for systems integration and reporting. Also, the implementation of the database has the limitation of instance backups which expire in three days. And customers need to replicate the data so that reporting can happen.
Customers also need to do their own Dynamics 365 backups and restores to meet their business data recovery plans. While enabling retention and versioning can help preserve critical files and data, you still need to plan for additional data protection scenarios.
Replicating data to Azure VM
The downside to not having a SQL Server in CRM Online is that you do not have a SQL Server for restore and backup. CRM Online does, of course, have other ways of querying and analysing and reporting on data (such as the REST API, or FetchXML), but CRM Online does not permit direct SQL access. Even though SSRS reports can be uploaded, they cannot have SQL data sources, they must instead rely on FetchXML queries.
The Data Export Service (DES)
The Data Export Service essentially allows replicating the CRM data into an Azure SQL Server instance for querying, thereby alleviating the issue of having to learn a new technology just to perform the same old queries.
The Data Export Service is an add-on service that adds the ability to replicate data from Common Data Service database to an Azure SQL Database store in a customer-owned Azure subscription. The Data Export Service intelligently initially synchronizes the entire data of required entities configured in the profile, and thereafter synchronizes on a continuous basis as changes occur (delta changes) in the system. This helps enable several analytics and reporting scenarios on top of data with Azure data and analytics services and opens up new possibilities for customers and partners to build custom.
This service can be used for SQL based Reports on cloud server, as part of data integration/ETL operations, for querying database for business purpose and as backup of cloud data for required entities etc. as needed.
Prerequisites for using Data Export Service
Here are some prerequisites that are required for setting up and implementing DES for database export:
- Azure SQL Database service: A customer owned Azure SQL Database subscription is required, which allows the volume of data to be synchronized. Azure subscription that includes the following services: Azure SQL Database or Azure SQL Server on Azure virtual machines, Azure Key Vault.
- Firewall: Configure your firewall rules to allow communication between Data Export Service and SQL Server, and between Data Export Service and Azure Key Vault. The database user must have permissions at the database and schema level according to the following tables. The database user is used in the data export connection string.
- Azure Key Vault service: Customer owned Key Vault subscription is required, which is used to securely maintain the database connection string.
Setting up Data Export Service
In order to set up and run DES, the following needs to be done:
- VM with SQL server setup
- DES Add-on installation
- Set up Azure key vault
- DES profile creation
Set up Azure Key Vault
The Azure KeyVault is used to store the connection string for the SQL database. This is plain text and will contain the username and password of the database user. Since this is very sensitive information, and could allow anyone access to the data, a secure online storage solution (the Azure KeyVault) is used to secure the information.
Run the Windows PowerShell script as an Azure account administrator to give permission to the Data Export Service feature so it may access your Azure Key Vault. This script displays the key vault URL required for creating the Export Profile that is used to access the connection string.
Create the DES Profile
The Export Profile is needed in order to export data from model-driven apps in Dynamics 365. Multiple profiles can be created and activated to synchronize data to different destination databases simultaneously. The Export Profile is the core concept of the Data Export Service.
Ensure that following requirements are met before creating an Export Profile:
- The Data Export Service solution is installed in your environment.
- Maintain the SQL Database connection string in the Key Vault and copy the Key Vault URL to provide in the Export Profile.
- The entities to be added to the Export Profile are enabled for change tracking.
- Your SQL Database service has enough storage space to store the data.
- You are a System Administrator in the environment.
Once the above requirements are met, you need to create a profile to sync the entities. You can also modify an existing export profile.
Limitations of Data Export Service
Here are some limitations of using the DES for database backup:
- Export Profiles must be deleted and then re-created whenever you perform any restore, copy, reset or move actions on an environment.
- The Data Export Service doesn't work for sandbox environments that are configured with Enable administration mode turned on.
- The Data Export Service does not drop (delete) the associated tables, columns, or stored procedure objects in the destination Azure SQL database when entities, fields are deleted.
4. Deploying SQL-based Reports
SQL Server Reporting Services (SSRS) is a reporting software that allows you to produce formatted reports with tables in the form of data, graph, images, and charts. These reports are hosted on a server that can be executed any time using parameters defined by the users. It is part of Microsoft SQL Server Services suite.
You need to use SSRS servers for deploying these reports. Some advantages of using SSRS servers are as follows:
- It is faster and cheaper.
- Efficient reporting access to information that is residing in both MS SQL Server database or Oracle
- No need for expensive specialist skills
- In SSRS the default report designer is integrated with Visual Studio .NET. This allows us to create an application and reports in the same environment.
- The security is managed in a role-based method which can be applied to folders and reports.
- Subscription-based reports are automatically sent to the users.
- Faster production of reports on both relational and cube data
- Real time information to the business, providing better decision support
Setting up SSRS Server
SQL Server Reporting Services installation involves server components for storing report items, rendering reports, and processing of subscription and other report services.
Here are some prerequisites for setting up the server:
- Download SQL Server 2019 Reporting Services from the Microsoft Download Center.
- Review the Hardware and software requirements for installing SQL Server.
- You do not need a SQL Server Database Engine server available at the time of install. You will need one to configure Reporting Services after install.
Once the above are met, install Reporting Services and configure the report server.
Additional configuration: You can additionally configure the server for the following:
- Integration with the Power BI service
- Email for subscriptions processing
- Configuration of the web portal so you can access it on a remote computer to view and manage reports
Working with Reports
You can use the deployment features in SQL Server Data Tools (SSDT) to publish the reports to a report server. You can publish individual reports or a Report Server project which can include multiple reports and data sources. SQL Server Data Tools (SSDT) provides project configurations for managing report publication. The configuration specifies the location of the report server, the version of SQL Server Reporting Services installed on the report server, whether the data sources published to the report server are overwritten and so forth.
When you deploy a Report Server project, the shared data sources in the report project are also deployed. All reports are deployed using the same project configuration: to the same report server, the same folder on the server, and so on. To publish reports to different servers, either publish them one by one or include only reports you want to in the Report Server project. A solution can include multiple Report Server projects, and using multiple projects might make it easier to manage the deployment of reports because you can use a different configuration to deploy different projects.
Reporting Services Subscription
A Reporting Services subscription is a configuration that delivers a report at a specific time or in response to an event, and in a file format that you specify. Subscriptions can be used to schedule and automate the delivery of a report and with a specific set of report parameter values. Do note that CRM Online does not have reporting scheduling, whereas CRM On Prem has this feature.
Reporting Services supports two kinds of subscriptions: standard and data-driven.
- Standard subscriptions: Standard subscriptions are created and managed by individual users. A standard subscription consists of static values that cannot be varied during subscription processing. For each standard subscription, there is exactly one set of report presentation options, delivery options, and report parameters. Standard subscriptions produce one instance of a report. The report is delivered to a single shared folder or to the e-mail addresses specified in the subscription. If the report uses parameters, a standard subscription is processed with a single value for each parameter in the report.
- Data-driven subscriptions: Data-driven subscriptions can produce many report instances that are delivered to multiple destinations. Delivery options that affect how the report is rendered and whether the report is attached or linked to the e-mail can also vary from subscriber to subscriber when the values are passed in from the row set. Data-driven subscriptions can produce a large number of deliveries. The report server creates a delivery for each row in the row set that is returned from the subscription query.
5. Database integration for greater data management
Modern CRMs have built in data integration capabilities allowing an employee to retrieve information from any legacy system within your company or external remote systems. You can also push information to external systems either with the click of a button or automatically. This concept ties back to establishing a central hub of data for key personnel to execute important responsibilities without having to use multiple systems to do so. CRMs are designed to store all the information necessary for your business to perform at an optimal level, and data integration is another tool available to accomplish just that.
Microsoft SSIS (Microsoft SQL Server Integration Services) is a platform for data integration and workflow applications. It features a fast and flexible data warehousing tool used for data extraction, transformation, and loading (ETL). The SSIS Integration Toolkit uses SSIS to facilitate integration with specific enterprise applications including Microsoft Dynamics 365, SharePoint, and Active Directory, among many more.
KingswaySoft Inc. is a leading integration solution provider offering software solutions that make data integration easy and seamless. KingswaySoft brings in the availability of the Migration Starter Pack for CRM Online and On-Premise, a sample SSIS package for Microsoft Dynamics CRM migrations. This sample package uses their SSIS Integration Toolkit for Microsoft Dynamics CRM to work through many of the complexities of CRM migrations and to take a lot of the work out of migration development. This implies faster turnaround time and efficient workflow.
KingswaySoft is used for the following operations:
- It can be used as a source for SQL based reporting to perform query-based data. This implies that KingswaySoft makes the required data available for reporting as needed.
- It allows you to process, cleanse and transform the third-party data on database before pushing it into CRM.
- KingswaySoft also provides some feature that allow you to manage existing components and packages, and runs scheduled jobs.
Additionally, fetching additional entities and their data from cloud CRM to database, which are not available as part of DES online data sync, can also be achieved through this integration.
6. Conclusion
In this paper we have seen what the functions and features of Dynamic CRM Online are, its advantages over an on-prem version and the limitations it has when it comes to data reporting. We saw the native reporting options and the ways we can get to do advanced custom reporting using CRM. We also examined the way to set up database server for report deployment and saw the various types of reports and their generation.
In conclusion, Dynamic CRM comes with various options for advanced reporting and for enhanced database integration that can generate reports that could be used for detailed analytics.