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)

is window.top.location.reload(); supported for dynamics crm online?

(0) ShareShare
ReportReport
Posted on by

i have placed a ribbon button on a home page of custom entity. my requirement is to refresh the home grid after certain operations, Since i did not found any supported way . i go with reloading the whole CRM through window.top.location.reload(true); But can anyone say is this "window.top.location.reload()" supported if not please suggest me with any alternatives.  

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Andreas Cieslik Profile Picture
    9,267 on at

    There is another approach here:

    www.magnetismsolutions.com/.../how-to-refresh-main-entity-views-for-an-entity-in-dynamics-365

    it is not supported but if thats a must-have requirement you might need to deal with it the right way. So add the appropriate try catch block and be aware that with future releases your scripts might not work.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Vijay ,

    Seems there is no supported way you can do this , either you need to reload , redirect with current URL or you can achieved this using  accessing DOM.

    So as per Microsoft all are unsupported , so to fulfill  customer requirement you need to choose right approach to deal with the requirement .

    For me Andreas answer is correct , by doing this your page wont be reload and customer will accept this easily as by doing this your page will not reload  completely and its internally calling supported method , you just need to do null check to get the control that's all.

    But if you write like window.top.location.href = "url" or window.top.location.reload() your page will reload completely which is at all not a good solution.

  • Community Member Profile Picture
    on at

    Hi thanks, For your prompt responses, however i am looking for supported way of customization since i am designing app   for Microsoft app-source.

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