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)

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

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