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.
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();
}
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
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) {
// 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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 258
MVP-Daniyal Khaleel 182
Tom_Gioielli 125 Super User 2025 Season 2