Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pEfSpNJ1Rm28+euGFGPC3t
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,838 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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Loading started