Announcements
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.
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.
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
can use something like this on event handler on main form load or save event
function refresh(executionContext) {
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Manoj - ManoVerse 131 Super User 2026 Season 1
11manish 88
Chris1968 20