Generate PDF Report in Dynamics CRM 365

There is plenty of material available to achieve this very commonly needed functionality to generate PDF of the existing report in your CRM system. I will give some tips and tricks to achieve this in most efficient way.

The requirement is to download PDF format of the SSRS report (OOB or Custom) on a button click either on home page grid or on a button click on the form.

This can be divided in steps:

Step 1: Get ReportSession and ControlID

Step 2: Download report as PDF

Tips and Tricks

It is very important that you prepare parameter XML and query string correct in order to generate PDF report smoothly. I will show you how you can smoothen this. 

  • If custom report is generated with report Wizard i.e. enableprefiltering=”1″, then use below example for query string where CRM_Filterednemely_quote is parameter name in the custom report on Quote entity.

  • If custom report is created without prefiltering, then use below query string where CRM_Filterednemely_quote is parameter name in the custom report on Quote entity.

  • If custom report and not using fetch as parameter.

  • To get parameter XML, use fiddler to get all details you need.
Fiddler


Hope this helps to achieve your goal. Please share your comments and contact us if you have any questions. 

Like this article?

Share on facebook
Share on Facebook
Share on twitter
Share on Twitter
Share on linkedin
Share on LinkedIn
Share on pinterest
Share on Pinterest

Contact us

Do you love our content? Please use the contact form if you want to send us your feedback, comments, or other queries.
Other Options to Contact Us:

Nemely Products

shutterstock_1259077843
AppIcon_Colorful
CRM Alerts
The ultimate companion app for your mobile CRM users. CRM Alerts simplifies the work life for any CRM user that is doing sales-related activities with their mobile devices on a regular basis
shutterstock_710149132
Access Templates Icon 2
Access Templates
User security role and team assignment solution. Do you have a complex security model in your CRM system and having difficulty keeping track of which security roles and teams to assign to different user types? We have a solution for you!
NemelyProspectingHero
NemelyProspecting
Nemely Prospecting
Get relevant and up-to-date company information. With Nemely Prospecting, you can easily find and import company information directly from within your CRM.
Product Lifecycle Management by Nemely
PLM Icon
Product Lifecycle
Asset and contract management. Manage customer assets and related contracts in Dynamics CRM. It's a plug-and-play solution, completely customizable, uses latest technology, works on all devices, and more.
shutterstock_1233205321
Sharepoint Extended
Sharepoint Extended
Enhanced document management. Built on top of the native integration between Microsoft Dynamics and Sharepoint, our solution Sharepoint Extended extends the functionality with better user experience, default structures, and document template creation.
Nemely Essentials
Nemely Essentials Inverted
Nemely Essentials
Dynamics CRM for small businesses. With the power of Dynamics 365 under the hood, but with a clean and simplified user experience with clever time-saving functionalities, you really get the best of both worlds.
Legal Practice Management
Legal Icon
Legal Practice Management
Client Relationship Management for law firms. Our packaged solution for law firms, built on top of Microsoft Dynamics 365 and Project Operations, combines several processes related to the acquiring, compliance validation, onboarding, delivery, and invoicing of legal services.

Related Posts

Connect to Multi-factor Enabled D365 Dataverse/CDS Programmatically Using Certificates (Online 9.1)

Connect to Multi-factor Enabled D365 Dataverse/CDS Programmatically Using Certificates (Online 9.1)

As the continuation to my earlier blog post, “Connect MFA Enabled D365 CDS Programamatically”, where we connected…
Refresh CRM Grid using JavaScript

Refresh CRM Grid using JavaScript

In Microsoft Dynamics 365, there are many occasions that you need to refresh either form or view…
Connect to D365 CE Programmatically without MFA/ On-Premise D365 CE

Connect to D365 CE Programmatically without MFA/ On-Premise D365 CE

As a developer, I regularly create connection to my D365 instance (On-Premise) and/or D365 CDS online(MFA and…