Hi,

Below is the script to refresh the sub-grid

    var mySubGrid = Xrm.Page.ui.controls.get(“{sub-grid name}“);

if (mySubGrid) {

mySubGrid.refresh();

}

To get the sub grid name

  • Open the entity customization form
  • In designer, double click on subgrid
  • In the dialog window, copy the “Name” value
Get Sub grid  name
Get Sub grid name

 

To refresh the main grid, use below script

    if (crmGrid) {

crmGrid.Refresh();

}

Hope it helps 🙂

Leave a Reply

Visitors

2,190,970 hits

Top Posts

Discover more from Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

Subscribe now to keep reading and get access to the full archive.

Continue reading