Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

D365 SSRS Report dynamic data source Url for multiple environments

Posted on by Microsoft Employee

Hello,

Environment: D365, CRM online, SSRS - reporting services, Visual Studio 2015, BIDS

Problem: I have created a fetchXml report that I currently have an embedded data source pointing to my DEV environment.   How can I change the data source on the report to make it dynamically point to the correct environment that the report is be run from?  Eg. Test, QA, Production

Thanks~

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: D365 SSRS Report dynamic data source Url for multiple environments

    Add the report to the solution that is pointing to your dev environment.

    Deploy that report as part of your solution to test or production.

    The connection string should redirect to the new SSRS server.

    Try it out.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: D365 SSRS Report dynamic data source Url for multiple environments

    HI Laura,

    I dont think you need to change the dataconnection to your target using an embedded datasource.

    just depoly your report in the crm .

    Best Regards,

    David

  • Suggested answer
    Thomas David Dayman Profile Picture
    Thomas David Dayman 11,323 on at
    RE: D365 SSRS Report dynamic data source Url for multiple environments

    Either you just hard code the url in the report to point at production. Or you could try writing a function in the connection string to dynamically pick up the CRM server. I personally haven't tried dynamically changing the server but you could give it a shot.

    stackoverflow.com/.../ssrs-report-dynamic-connection-string-and-parameters

    dynamicspeople.wordpress.com/.../ssrs-report-in-dynamics-crm

  • Nausher Sayeed Profile Picture
    Nausher Sayeed 520 on at
    RE: D365 SSRS Report dynamic data source Url for multiple environments

    Hi Laura,

    Did you get workaround to change the connectionstring when we want to deploy to UAT or production server.

    Thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans