Since I use webresource in my CRM functionality, I need to use
window.parent.Xrm.Page...etc
to access entity data.
Unfortunately, since I write in typescript, this construct will not compile. At the moment, I'm just adding window.parentup to Xrm.Page... (I got the Xrm credits) manually, but this is very far from the idea of TypeScript. Is there some way, some typical or so, that will allow me to call window.parent.Xrm in a normal, elegant way? I am using Visual Studio
source
share