Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Refresh form after plugin update

(0) ShareShare
ReportReport
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 Super User 2024 Season 1 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 Super User 2024 Season 1 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 Super User 2024 Season 1 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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans