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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / A Webresource in a for...
Power Apps
Unanswered

A Webresource in a form is loaded twice if you set on true "Pass record object-type code and unique identifier as parameters"

(0) ShareShare
ReportReport
Posted on by

Greetings,
I found something that I think it could be a bug. I have a webresource inside a form. This webresource has a function, in its script, that is called from the js of the form for passing Xrm and formContext, like in the Microsoft's example getContentWindow (Client API reference) in model-driven apps - Power Apps | Microsoft Learn
I saw that when I load the WR, if the parameter is set on true in the form maker the WR is loaded twice. That makes the WR to loss data about Xrm and formContext, and result in a broken WR.
I set it on off, just taking the same parameter from formContext, and it work fine. No more double load. 
So I think the problem is that for some reason, the form change the src of the WR, adding the parameter just in a second time. But this makes the page to be reloaded. I don't think this is a good behavior, also because it is not write anywhere (or I was not able to find it in over three hours of research)

If it is a normal behavior, maybe a warning could be useful, especially in the getContentWindow page

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard