cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MBilal-079
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
a-ovbord
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: https://admin.powerplatform.microsoft.com/support

 

Thank you.

Ovidiu

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,535)