Thursday, January 23, 2020

Refreshing the Web Resource in Dynamics 365 UCI

Hi Team,

Please find the below code for refreshing the Webresource through UCI

 var webResourceControl = Xrm.Page.getControl("WebResource_HTMLHubCalculations");
        var src = webResourceControl.getSrc();
        webResourceControl.setSrc("test"); // setting null won't work in UCI
        setTimeout(function () {
            var url = Xrm.Utility.getGlobalContext().getClientUrl();
            webResourceControl.setSrc(url + "/%7b637153127100011730%7d/webresources/yourscript.html");
        }, 100);

No comments:

Post a Comment

Day 11 - Customizing Option Sets Dropdown Fields with JavaScript

  In this Blog, we will see how to Customizing Option Sets Dropdown Fields with JavaScript label1 = formContext.getAttribute( "bosch_op...