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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Ribbon Workbench smart button "run report"

(0) ShareShare
ReportReport
Posted on by 365

Hello

i want to run a report with feature "Run report" in ribbon workbench

i created a button and give it the name of the report the problem is when i click on it it execute a rondom report not the one i want but when i run my report from the out of box area it work well

should i pass parameters to my button if yes how can i do this

62053.Capture.PNG

*This post is locked for comments

I have the same question (0)
  • RominaARG Profile Picture
    26 on at

    Hi,

    have you solved this problem? We're facing the same issue.

  • Verified answer
    RominaARG Profile Picture
    26 on at

    We found the solution in this reported issue: github.com/.../28

    What we have to do is replace the Ribbon Javascript.

    Create a new solution and add the JS named "dev1_/js/SmartButtons.ClientHooks.js". Then change the report URL in line 2096:

    OLD LINE: '/crmreports/viewer/viewer.aspx?action=run&id=%7b'+encodeURIComponent($1_2)+'%7d&records=%7b'+recordId+'%7d&recordstype='+etc;

    NEW LINE: '/crmreports/viewer/viewer.aspx?action=run&context=records&id='+encodeURIComponent($1_2)+'&records='+recordId+'&recordstype='+etc+'&helpID='+reportName;

    That solved my problem!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans