Skip to main content

Notifications

Community site session details

Community site session details

Session Id : xaWas9IU5jRqskn9/xusI+
Power Pages - Customize & Extend
Unanswered

Pass url parameters to webresource on a form

Like (0) ShareShare
ReportReport
Posted on 31 Jan 2023 11:57:09 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:
  • Sahil Profile Picture
    130 on 17 Apr 2023 at 19:36:42
    Re: Pass url parameters to webresource on a form

    Did it work for you?

  • Rohel Profile Picture
    2 on 02 Feb 2023 at 09:35:32
    Re: Pass url parameters to webresource on a form

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

  • Fubar Profile Picture
    7,883 Super User 2025 Season 1 on 31 Jan 2023 at 22:10:16
    Re: Pass url parameters to webresource on a form

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Pages - Customize & Extend

#1
Ajlan Profile Picture

Ajlan 4

#2
Fubar Profile Picture

Fubar 2 Super User 2025 Season 1

#2
CBDEV Profile Picture

CBDEV 2

Overall leaderboard

Featured topics

Loading started