How can you access web resource window from form:-

You used to be able to do with Xrm.Page.ui.controls.get("<WebResource_Name>").getObject().contentWindow.<JavaScript_Function>(parameters);

I’ve replaced Xrm.Page with the Form context (ExecutionContext.getFormContext) but get an error that contentWindow does not exist.

 

How can you access Form Window from Web Resource:-

You used be able to use parent.Xrm.Page and this continues to work with V9 but NOT on Unified Interface. Microsoft’s documentation say’s you have to continue using this method for V9.

 

My code all works with CRM on-line using the Classic Forms but NOT with the Unified Interface.