cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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 +
"&pagemode=iframe&rof=true&security=852023&tabSet=areaSPDocuments&theme=Outlook15White";

executionContext.getFormContext().getControl("IFRAME_SharePoint").setSrc(url);
}

 

Please see attached screenshots for more details.

Any help will be appreciated.

 

Many Thanks

Muhammad Bilal

 

1 REPLY 1
Microsoft
Microsoft

Hi @MBilal-079 ,

 

For code troubleshooting I would advice to open a service request on the Power Platform Admin Center portal: https://admin.powerplatform.microsoft.com/support

 

Thank you.

Ovidiu

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (22,875)