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
Did it work for you?
As the webresource is loaded in the iframe, this might be a problem. Or is there any other way how to put a webresource (html with javascript) on to the PowerPage? There is an iframe component, but it accepts only external url (must start with https://)
On the Portal it is pure HTML and Javascript, no access to Xrm. etc if you need values off the Form etc you can just access them with jQuery/JavaScript from inside the Web Resource.
WarrenBelz
146,653
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional