Tuesday 8 August 2017

Refreshing the Web Resource in Dynamic CRM

Refreshing the Web Resource in Dynamic CRM

Description:

In this example we explain that how to refreshing the web resource in Dynamic CRM.or how to bind web resource in dynamic CRM and refresh the web resource after the change of the any action in dynamic crm. Or how to populate web resource in dynamic crm and refresh the web resource.

Here we are using HTML web resource in entity form. Whenever we save the record then it will automatically refresh the web resource and get the latest data and bind or populate in web resource.

So how to refreshing the HTML web resource after save button click in Dynamic CRM using JavaScript and XRM.


Call this below code on the save event of your entity form that will automatically refresh the data in your HTML Web resource and bind it.

Code: 

function refreshHTMLWebResource() {
    var webResourceControl = Xrm.Page.getControl("WebresourceName");
    var src = webResourceControl.getSrc();
    webResourceControl.setSrc(null);
    webResourceControl.setSrc(src);


}


0 comments:

Post a Comment