Dynamics CRM reporting service supports automatic data Pre–Filtering to
- Make reports context-sensitive by narrowing the scope of a report to return more relevant data.
- Retrieve and display a result set faster because only more relevant data is returned.
- Allow the report to be filtered using the Advanced Find feature.
To enable automatic data pre-filtering on a report, you can alias entity tables in queries by using an alias name that starts with “CRMAF_”.
Here is one reference you can take a look at: http://msdn.microsoft.com/en-us/library/bb955092.aspx
When CRM administrator deploys the report RDL in Dynamics CRM solution, CRM automatically modifies the uploaded RDL code to add “p1” parameter and modify the query. It works very well and Pre-Filtering will be enabled for this report.
However sometime report administrator might go to Reporting Server and deploy/modify the RDL on server directly which might cause the CRM automatically added code lost. It’s difficult to troubleshooting the issue until you realize the RDL code was modified by CRM when uploading the report.
To avoid this kind of potential issue in our project, we always deploy and update the custom report through CRM and avoid the direct modification on reporting server.
I hope you find it useful!
Author: Zhe Chen
Title: Lead Dynamics CRM Consultant @ Adisys