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 CRM (Archived)

Connect to CRM Organization through SDK using xrm user id and run the SSRS report and download as PDF file.

(0) ShareShare
ReportReport
Posted on by

Hi,
I want to connect to CRM Organization/API through SDK using my xrm user id and run the SSRS report and download as PDF file. Is there any way to do this?

Thanks

Sujit

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at

    For this u can create a button ("Download Report")and call the Report id in the Button JS.

  • Community Member Profile Picture
    on at

    I can not use JS here, as I want the report to be generated without any user, exe is fine as I can schedule exe.

  • abhishek_255 Profile Picture
    1,614 on at

    Hi -

    I don't think that you can run CRM SSRS reports through XRM sdk outside CRM. You could download the SSRS report, rename its extension from .rdl to .rdlc and add it to your Visual studio project. Bind an object [populated list with data] to report's dataset.

    For PDF Rendering -

    social.msdn.microsoft.com/.../programattically-render-pdf-from-reportviewer

    In case your requirement is to schedule a SSRS report and CRM is on premise then you can leverage CRM's report scheduling feature.

    Best  Regards,

    Abhishek

  • Community Member Profile Picture
    on at

    Hi Abhishek, my requirement is for crm on-premise, but I can not use crm's report scheduling feature as I don't want to use crm reporting server credential, the report should be run with xrm credential.

  • abhishek_255 Profile Picture
    1,614 on at

    I'm not sure but it seems like you would like to create reports with admin account that has access to organization data. If that is the case then you can create custom SSRS reports (http://computername/reports) and use Microsoft SQL SERVER as connection type and in credentials specify your XRM credentials (admin user account).

    Export that report and import it to CRM.

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    If you are using On-Premise, you can configure this in SSRS. Create a job to schedule the time that the reports are supposed to run, and set what process you want, such as emailing the report, or possibly storing the report to a shared location. Then, if you need to manipulate the generated file further you can do that from your exe application.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans