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)

Adding Custom Scripts To CRM Charts and Dashboard

(1) ShareShare
ReportReport
Posted on by 115

Hi House,

I have a need to Add Custom Scripts To CRM Online Charts and Dashboard, to allow me display them the way the client Requested.

I Urgently Need some one to Please help me out with a way to go about this....

Thanks & Regards.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi Hiram,

    Are you referring to SQL or JavaScript? If it's SQL, you definitely cannot do that with CRM Online. If it's JS, you might be able to do something when the dashboard page loads but I don't think it would be supported.

    Hope this helps! I'd appreciate if you'd mark this as a Verified answer.

    Thanks,

     Aiden

  • Hiram N. Profile Picture
    115 on at

    Hello Aiden,

    Thanks for your Constant Contributions and Efforts to see that my Problems are fixed.

    Am absolutely not referring to SQL because an very sure it wunt work for CRM Online.

    1.  Like What do you think I might be able to do when the dashboard page loads?

    2.  Why do you I think Javascript wouldn't be supported.

    Thanks and Regards.

  • Verified answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi Hiram,

    I'd be surprised if it was supported because I haven't seen any javascript accessibility around dashboards or charts in the client-side programming reference (msdn.microsoft.com/.../gg328255.aspx). You can do js on forms and for controls, and you can hook in javascript from buttons in the ribbon, but I've never seen anything around working with charts or dashboards.

    You might possibly be able to access it through unsupported javascript. If your charts is on a form you might be able to put JS in the Form Load and get at it through the DOM, but that's not supported and it could break with an upgrade.

    Thanks,

     Aiden

  • Hiram N. Profile Picture
    115 on at

    Thanks Aiden,

    You really have quenched heat off my ass.

    Thanks and Warm Regards.

  • RyanCPerry Profile Picture
    105 on at

    Hi Aiden, This thread is a few years old, but wondering if you are aware of any developments in the last 5 yrs on this front.

    I have some scripts that load on the default ribbons for forms and views that track usage for analytics. These use the primaryControl (IE formContext), passed as a parameter from the ribbon enable rule to determine which view/form is loaded, checking for a  .getviewselector or .entityreference, respectively.   I'd like to do the same for Dashboards, but when this script is called on the default dashboard ribbon (Mscrm.DashboardTab), the primaryControl parameter passed doesn't appear to have the needed info. It includes a getControl method which returns an array from which I can get information about the individual control(s) on the dashboard but I can't seem to find a display name or Id for the dashboard as a whole.

    Any pointers?

    pastedimage1630695072678v1.png
    pastedimage1630695923893v2.png

    pastedimage1630695965981v3.png

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