Sometimes I have had the requirement in past to refresh CRM form when things are being added to the record sub-grid. I wasn’t able to achieve a solution in supported scripting prior to CRM 2015 Update 1.
Here is the piece of code which needs to be added to your Form on load which will take care of refreshing the form asynchronously every time anything is added to the subgrid
function onload() {
var gridOnloadFunction = function () { Xrm.Page.data.refresh(false); };
Xrm.Page.getControl(“Subgridname”).addOnLoad(gridOnloadFunction);
}
Hi Deepesh,
Thanks for sharing . I am trying to implement same functionality to refresh account form when associated address is modified.
I wrote same code on account load but this is not refreshing required field on the account form . I am using CRM 2015 (version 7.0.1.129) IFD and using IE 11.
Please can you help me on this.
Regards,
Vishnu
Hi Vishnu, Can you tell me the requirement – it was quite unclear?
Regards,
Deepesh
cooooool
Thanks Carlos