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

How to Run Microsoft Flow for Every one Month

Introduction: In this Blog we will see how to Run Microsoft Flow for Every one Month. Implementation Steps:   1. Navigate to  https://make.p...