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)

Custom Ribbon BUtton - Link to SSRS Report

(0) ShareShare
ReportReport
Posted on by

I am using the ribbon workbench solution (by Develop1.net) to add a custom button to the product form ribbon. The button comand is to link to an ssrs report. an error is received

The path of the item '/Custom+Reports/InventoryCheck/Low+Stock' is not valid.
The full path must be less than 260 characters long; other restrictions apply.
If the report server is in native mode, the path must start with slash.
(rsInvalidItemPath)

The URL is 114 characters. I have also tried adding (/) in front of the url but than receive another error that says the path is dangerous. Any suggestions?

*This post is locked for comments

I have the same question (0)
  • Royal King Profile Picture
    27,686 on at

    Is it custom report you imported into crm or you are trying to provide link to ssrs report that resides in your report server?

  • Community Member Profile Picture
    on at

    It does not reside in crm, its an ssrs report on our report server

  • Royal King Profile Picture
    27,686 on at

    if you access the whatever url  embedded in the custom ribbon button in browser does it work?

  • Community Member Profile Picture
    on at

    yes

  • Royal King Profile Picture
    27,686 on at

    Are you calling javascript on click of button to open custom report if not i would suggest adding javascript function to encode url and opening it ?

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Please create a custom button in your form. Attach a javascript function to open SSRS report link in a new window.

    you can use below snippet for your refernce.

    function openReport()

    {

    var w = 950;

    var h = 650;

    var left = (screen.width/2)-(w/2);

    var top = (screen.height/2)-(h/2);

    var url ="your ssrs report url"

    window.open(url, "reportwindow", "resizable=1,width=950,height=700,left=" +left+ " ,top=" +top);

    }

  • Community Member Profile Picture
    on at

    I've done that but no the button wont do anything. this is my script.

    function openReport() {

       var w = 950;

       var h = 650;

       var left = (screen.width / 2) - (w / 2);

       var top = (screen.height / 2) - (h / 2);

       var url = "orbusssrs/.../Report.aspx;ViewMode=Detail"

       window.open(url,"reportwindow", "resizable=1,width=950,height=700,left=" + left + " ,top=" + top);

    }

  • Royal King Profile Picture
    27,686 on at

    It looks like you are not passing full url of the report. You have to full url of the report otherwise crm will add first part of the url from crm and it will not work.

    Say if you ur report url in report server is servername/.../reportname , you have to pass this complete url not just part of the url.

  • Community Member Profile Picture
    on at

    The server name is orbusssrs and the name of the report is Low Stock. When I paste that URL into a browser window the report comes up

  • Royal King Profile Picture
    27,686 on at

    can you add protocol as well like http:// or https:// to the url and give a try?

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