Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Refresh form after plugin update

Posted on by 20

When i save a record, i have a plugin that runs on update of a record, but the changes are not immediately visible on the form the subgrid, as i have to refresh. Is there a way to eliminate that issue, is there an solution for this?

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: Refresh form after plugin update

    Hi Ganesh Chowhan,

    Thank you.

  • Suggested answer
    Ganesh Chowhan Profile Picture
    Ganesh Chowhan 160 on at
    RE: Refresh form after plugin update

    Hi Abdul,

    If plugin is synchronous and running in same execution context it will work, after save of parent record will refresh as well its grids. I tried.

    Please let me know if you have any other thoughts on this.

    Thank you.

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: Refresh form after plugin update

    Hi Ganesh Chowhan,

     

    It seems to refresh sub-grid records. How would it be possible when the plugin is synchronous?

  • Ganesh Chowhan Profile Picture
    Ganesh Chowhan 160 on at
    RE: Refresh form after plugin update

    Hi,

    Yes, if you can make the plugin synchronous then your changes will reflect immediately, however if your requirement doesn't support for sync plugin then you might need to write client side JS code to reload the subgrid after some delay.

    Thank you.

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator on at
    RE: Refresh form after plugin update

    Hi Gertjan Deschuytter,

    Use the form 'On save' event. Refresh the subgrid using JS with a set timeout function.

    For more details:

    1. https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/grids/gridcontrol/refresh
    2. www.w3schools.com/.../met_win_settimeout.asp

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans