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)

how to refresh dashboard view with js?

(0) ShareShare
ReportReport
Posted on by

Hello, I've implemented a ribbon button that updates an entity field, based on the entity selected in a dashboard view. After I update the entity field through js, I need to refresh the dashboard view to redisplay the view with the updated field value.

What's the most elegant way to do this? I could execute js to reload the whole page, but would be the worst case scenario. Can you recommend a way to refresh only a specific view on a dashboard to display updated data?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vijay Waghmare Profile Picture
    on at

    You can refresh dashboard by using below JS,

    Mscrm.DashboardRibbonActions.refreshDashboardPage();

    Thanks,

    Vijay Waghmare

  • Community Member Profile Picture
    on at

    @Vijay - I just want to refresh a *single view* on the dashboard *not* the whole dashboard

  • Vijay Waghmare Profile Picture
    on at

    To the best of my knowledge, I don’t think there is any supported way of refreshing only dashboard view. If there is, surely it will gain my knowledge.

    May be MS Support team can help.

    Thanks,

    Vijay Waghmare

  • Markus88 Profile Picture
    15 on at

    Hi Vijay, do you know how this gonna work on the UCI? Looks like this code is not supported on the new Unified Client Interface...

    Thanks,

    Mark Driessen

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    For me below script worked in UCI to refresh the Dashboard : 

    parent.location.reload(true);

    Thanks,
    Sumit

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