Hi All, Recently, I came across a requirement where I wanted user to change entity image from html file up-loader. Below is the piece of code used to update entity image. Uploader.prototype.PostRequest = function (content) { var configurationId = parent.Xrm.Page.data.entity.getId(); var tabConfiguration = { EntityImage: '' }; tabConfiguration.EntityImage = content; //byte[] content of the web resource var jsonContact = JSON.stringify(tabConfiguration); //OData URI var oDataURI = parent.Xrm.Page.context.getClientUrl() + "/XRMServices/2011/OrganizationData.svc/" + "hsl_tabconfigurationSet(guid'" + configurationId + "')"; var req = new XMLHttpRequest(); req.open("POST", encodeURI(oDataURI), false); req.setRequestHeader("Accept", "application/json"); req....
Everything about Microsoft Dynamics 365 and Power Platform