web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

  • Suggested answer
    Vijay Waghmare Profile Picture
    on at
    RE: how to refresh dashboard view with js?

    You can refresh dashboard by using below JS,

    Mscrm.DashboardRibbonActions.refreshDashboardPage();

    Thanks,

    Vijay Waghmare

  • Community Member Profile Picture
    on at
    RE: how to refresh dashboard view with js?

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

  • Vijay Waghmare Profile Picture
    on at
    RE: how to refresh dashboard view with js?

    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
    on at
    RE: how to refresh dashboard view with js?

    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
    RE: how to refresh dashboard view with js?

    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans