Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

IFrame is not working in Model Driven App

Hi All,


i have an IFrame at the Main form of Account entity, i'm updating the URL of the iframe at OnLoad event of the form. Using this iframe i'm displaying the OOB Sharepoint Document Grid, it is working properly at Web Client but giving an error in Model Driven App.


my script is following for updating the URL of IFrame,


function SetDocumentFrame(executionContext) {

var url = Xrm.Utility.getGlobalContext().getClientUrl() +
"/userdefined/areas.aspx?formid=ab44efca-df12-432e-a74a-83de61c3f3e9&inlineEdit=1&navItemName=Documents&oId=%7b" +
executionContext.getFormContext().data.entity.getId().replace("{", "").replace("}", "") + "%7d&oType=" +
executionContext.getFormContext().context.getQueryStringParameters().etc +



Please see attached screenshots for more details.

Any help will be appreciated.


Many Thanks

Muhammad Bilal


Community Support
Community Support

Hi @MBilal-079 ,


For code troubleshooting I would advice to open a service request on the Power Platform Admin Center portal:


Thank you.


Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,624)