How to run the custom report only for selected record RRS feed

  • 問題

  • Hi All,

    I have created a custom SSRS Report using SQL query for custom entity now I want to run the report only for the particular report. How can I do this, it is not running for the selected record it is running for all the records.

    2014年7月18日 上午 07:18


  • The two things you need to do are:

    • In the SQL report, alias the filtered view as CRMAF_Filtered<EntityName> (e.g. FROM FilteredAccount AS CRMAF_FilteredAccount). Note that this only works effectively if the filtered view is only referenced once in the query. If you have subqueries so that it is referenced more than once, you'd need to use explicit pre-filtering (see http://msdn.microsoft.com/en-us/library/bb955092.aspx )
    • When you upload the report in CRM, ensure you have selected the entity that the report should run for (I expect you've already done this, if the report is showing as available to run on that entity form)

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    2014年7月18日 上午 08:16