
Announcements
Greetings,
I found something that I think it could be a bug. I have a webresource inside a form. This webresource has a function, in its script, that is called from the js of the form for passing Xrm and formContext, like in the Microsoft's example getContentWindow (Client API reference) in model-driven apps - Power Apps | Microsoft Learn
I saw that when I load the WR, if the parameter is set on true in the form maker the WR is loaded twice. That makes the WR to loss data about Xrm and formContext, and result in a broken WR.
I set it on off, just taking the same parameter from formContext, and it work fine. No more double load.
So I think the problem is that for some reason, the form change the src of the WR, adding the parameter just in a second time. But this makes the page to be reloaded. I don't think this is a good behavior, also because it is not write anywhere (or I was not able to find it in over three hours of research)
If it is a normal behavior, maybe a warning could be useful, especially in the getContentWindow page