SSRS Report run on multiple records in Dynamic CRM
Below example related to the "incident entity" and getting incident Id, title and ticket number in report.
Create a report project in VS and two new reports "mainreport" and "subreports".
Design subreport as ref below screenshot1
(screenshot1)
Dataset1 query(use filtered view)
SELECT top 1 Title, IncidentId, TicketNumber
FROM FilteredIncident
WHERE FilteredIncident.IncidentId = @CRM_IncidentId
Design 2nd report "mainreport" and add subreport in rectangle or list data item.
Dataset1 query:
SELECT TOP (20) IncidentId as caseid
FROM FilteredIncident AS CRMAF_FilteredIncident
Add a parameter in subreport
Add group properties in list or rectangle.
Add report in mscrm and run report for multiple records.
report result for multiple records.
run report from the form, it will run for that record only.
Enjoy :)







