web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Pass url parameters to...
Power Pages
Unanswered

Pass url parameters to webresource on a form

(0) ShareShare
ReportReport
Posted on by 2

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

Rohel_0-1675165915309.png

 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)

Rohel_1-1675165963355.png


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

Rohel_2-1675166105377.png


Thanks

Categories:
I have the same question (0)
  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    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.

  • Rohel Profile Picture
    2 on at

    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://)

  • Sahil Profile Picture
    132 on at

    Did it work for you?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 41

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 35 Most Valuable Professional

#3
rezarizvii Profile Picture

rezarizvii 28

Last 30 days Overall leaderboard