web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Reload Main Form on reload/refresh of Sub-grid in Dynamics 365 CRM Unified Interface

(0) ShareShare
ReportReport
Posted on by 20

I have a scenario where in Orders Form there is a Invoice Schedule Sub-grid. I need to Refresh/Reload the Main Form when the Invoice Schedule Sub-grid is reloaded on Deactivating a particular record in the Sub-grid.

This scenario is for Dynamics 365 CRM Unified Interface (UCI). I have tried all the three Sub-grid events but does not help in this scenario.

Thanks in advance.

I have the same question (0)
  • Verified answer
    SergioMarques Profile Picture
    Microsoft Employee on at

    Hi Ronak,

    Have you tried to add a refresh event for the page on the onload event of the grid?

    Would look something like this: 

    function myFunction(executionContext) {

    var formContext = executionContext.getFormContext();

    // get the form context

    var gridContext = formContext.getControl("Contacts");

    // get the grid context

    var myContactsGridOnloadFunction = function () {

    // perform a full page refresh

     };

    gridContext.addOnLoad(myContactsGridOnloadFunction);

    }

    Reference: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/grids/gridcontrol/addonload

    Thank you.

  • Suggested answer
    Ronak Lodaya Profile Picture
    20 on at

    Hi @Sergio, Thanks for the help. I found similar answer on my Stack Overflow account.

    Check this out: stackoverflow.com/.../reload-form-on-reload-refresh-of-subgrid-in-dynamics-365-crm-unified-interface

  • Suggested answer
    Kathan Profile Picture
    20 on at

    can use something like this on event handler on main form load or save event

    function refresh(executionContext) {

       var formContext = executionContext.getFormContext();

         formContext.ui.refresh();

    }

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 131 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 88

#3
Chris1968 Profile Picture

Chris1968 20

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans