?
Solved

Microsoft CRM 4.0 - Adding a SSRS report to Account

Posted on 2011-04-20
5
Medium Priority
?
736 Views
Last Modified: 2012-05-11
I have created an SSRS report and added the rdl to the Reports menu.  It is functioning correctly.

I now need instructions on how to add this report under Accounts > Open an account > Reports > Run on Current Record.

The more step-by-step the instructions the better.  A link would also be good

Thanks
0
Comment
Question by:apollo7
  • 3
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
processguru earned 2000 total points
ID: 35434385
1. On the Reports view, select the report and click Edit Report
2. Click the browse button next to Display In, add 'Forms for related record types'

Whether or not the report filters based on the current record depends upon the way the query is built in the report. using an alias starting with CRMAF_ marks a data set as filterable by CRM. For example, your query should be built as follows:

SELECT *
FROM filteredaccount AS CRMAF_Acct

For more information: http://www.microsoft.com/dynamics/crm/using/customizing/reporttutorial.mspx
0
 
LVL 1

Author Comment

by:apollo7
ID: 35434857
I added it to Contacts (it had already been added to Accounts).   When I open a contact, it shows it  as "Run for All Records" instead of "Current Record".

The weird thing is that for Accounts, it runs for the Current Record so the SELECT *
FROM filteredaccount AS CRMAF_Acct appears to be added there.

For contacts, would it be something like  SELECT * FROM filteredcontact AS CRMAF_Cont?

Thanks for your help
0
 
LVL 6

Expert Comment

by:processguru
ID: 35434875
that's correct. If your report includes multiple tables/views joined together and you want filtering to occur on all, use the CRMAF_ on all...
0
 
LVL 1

Author Comment

by:apollo7
ID: 35434963
Thanks - that is very helpful.

The report is actually based on a stored procedure and then a query in the dataset to add some parameter values.  Would the prefilter go in the dataset query?

0
 
LVL 6

Expert Comment

by:processguru
ID: 35434996
hmmm, that I've never tried. I would think that would do it though.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question