Hello,
if you add a webresource on a form in model driven app you can pass custom parameters via url

you can even check the Pass record object-type code and unique identifier as parameters to let dynamics to send additional context information via url (in iframe)

However if I added this form to power page the parameteters were not sent (appended to the uwlo of the webresource)
How can you pass the context to the webresource on the form (in powerpages)?
Even the Xrm object or the GetGlobalContext() function on a window object are not present either.
The only info I found (but did not found it in documentation) is the window.parent.Microsoft.Dynamic365.Portal object that holds the info about user and probably the id of the portal.
Is there any other way how to pass context information to the webresource on the form?
P.S. seems like the height of the iframe is ignored in the power pages too

Thanks