Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Partial refresh page after plugin is executed

Posted on by Microsoft Employee

Hi, I have a plugin that populates several data on a contact form but the plugin is executed from other entity

Everything works fine the theme is I need to manually refresh the page to see the updated values on the form

I´m using  Xrm.Page.data.refresh but it doesnt work with the update 0.3 on Dynamics Crm 2015.

Thanks

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Partial refresh page after plugin is executed

    Hi Jose,

    if you solved the problem thanks to an answer, please mark it as verified to encourage the community to provide more and more a better support. Thank you. Francesco

    If you found the answer helpful, please mark as Verified 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Partial refresh page after plugin is executed

    Hi,

    Then you maybe should use the solution of Francesco.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Partial refresh page after plugin is executed

    Hi  Guillaume, yes I'm using Xrm.Page.data.refresh with update 0.2 it worked fine but we upgrade to 0.3 and it does´nt work anymore. 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Partial refresh page after plugin is executed

    I usually use the following method:

    Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId());

    If you found the answer helpful, please mark as Verified 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Partial refresh page after plugin is executed

    Hi Jose,

     how did you set up the plugin and what is the problem with "refresh"?

     Could you explain how this is supposed to work? For example, is it a synchronous plugin or not? Is there an error when you call refresh or are you just not seeing the updates?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Partial refresh page after plugin is executed

    Hi,

    after an update by plugins you always will need to refresh your records. Can you try that: community.dynamics.com/.../the-xrm-page-data-refresh-method

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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