Hi Experts,
Recently we have upgraded from MS CRM 2016 to Dynamics 365 and some JavaScript functionality is not working, we have web resource and loading it onload of the form but it is not working in Dynamics 365 and working fine in MS CRM 2016. It would be great if you can suggest on this.
JavaScript OnLoad
var FieldEvent = document.createEvent('Event');
FieldEvent.initEvent('TestCall', true, false);
HTML Web Resource
window.addEventListener('TestCall', function (e) {
//logic
});
Thanks
Srikanth