Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: is window.top.location.reload(); supported for dynamics crm online?

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

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: is window.top.location.reload(); supported for dynamics crm online?

    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.

  • Verified answer
    Andreas Cieslik Profile Picture
    Andreas Cieslik 9,265 on at
    RE: is window.top.location.reload(); supported for dynamics crm online?

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans