Skip to main content

Notifications

Announcements

No record found.

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.

  • Suggested answer
    Kathan Profile Picture
    20 on at
    RE: Reload Main Form on reload/refresh of Sub-grid in Dynamics 365 CRM Unified Interface

    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();

    }

  • Suggested answer
    Ronak Lodaya Profile Picture
    20 on at
    RE: Reload Main Form on reload/refresh of Sub-grid in Dynamics 365 CRM Unified Interface

    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

  • Verified answer
    SergioMarques Profile Picture
    on at
    RE: Reload Main Form on reload/refresh of Sub-grid in Dynamics 365 CRM Unified Interface

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 91

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans