web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Dynamic 365 SSRS Report : How to create SSRS Custom Report in VS for dynamic 365 to show reports for selected record of entity per page

(0) ShareShare
ReportReport
Posted on by 5

i want to create an SSRS report in visual studio for my dynamic 365 project. so i want SSRS report to show name of Primary entity (in this case ACCOUNTS) and all related records from related entity (in this case CONTACTS). ACOUNTS has 1:N relation with ACCOUNTS. 

so when a user select an account record in dynamic 365 and run Report against it then then report should display name from ACCOUNT as text and then show all related CONTACTS to that record in a table. 

but if a user select multiple records from ACCOUNT table then same should happen but report should only show record of one ACCOUNT  and its related entity on single page and next ACCOUNT name and its related entities on another page. i-e if i select 3 records then it report should create the pages and should related records of each account on a single page  

currently i have created a SSRS report (see below image) in Visual studio 2019 and uploaded the .rdl file to dynamic 365 solution.

pastedimage1625848662927v3.png

so basically what i want is when i select one record from ACCOUNT and then this report it should show only one page, Account name and related records in table.

but if i select multiple records from ACOUNT and run this report then it should show pagination and show single account name and related records to only that account on one page and records for second account name should be shown on second page.

i have been trying to to this from last 3 days but unable to solve the solve please if anyone could help me in this record i will really appreciate that.

I have the same question (0)
  • Verified answer
    Hari Narayanan Profile Picture
    589 on at

    Since you already have a report that works for 1 account record, you are half way there. Now you need to do treat this as subreport and create an main report.

    • In the main report you will get all the account Ids and create a table.
    • Inside the table insert subreport
    • Map Account Id from Parent report to sub-report
    • Insert Page-breaks inbetween rows
    • Test the report

    References

    Add a Page Break (Report Builder) - SQL Server Reporting Services (SSRS) | Microsoft Docs

    Subreports (Report Builder) - SQL Server Reporting Services (SSRS) | Microsoft Docs

  • Dildar Hussain Profile Picture
    5 on at

    that solved my problem. Thanks alot

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans