Hey,
I'm currently working on displaying the Sharepoint documents of an opportunity on an iframe. I am able to view the documents however when I try to open the document it opens up a blank page.
This is the code I'm using right now, kindly help me with being able to view the document on selecting the document from the view present in the Iframe.
function SetDocumentFrame() {
var url = Xrm.Page.context.getClientUrl() +
"/userdefined/areas.aspx?formid=ab44efca-df12-432e-a74a-83de61c3f3e9&inlineEdit=1&navItemName=Documents&oId=%7b" +
Xrm.Page.data.entity.getId().replace("{", "").replace("}", "") + "%7d&oType=" +
Xrm.Page.context.getQueryStringParameters().etc +
"&pagemode=iframe&rof=true&inlineEdit=1&tabSet=areaSPDocuments&theme=Outlook15White";
Xrm.Page.getControl("IFRAME_LegalDocuments").setSrc(url);
}
Thanks
*This post is locked for comments
Hi Nithika ,
you can use "crmgridpage.aspx" page to display the documents on the CRM form using IFRAME.
please follow the below link for more details:
salimadamoncrm.com/.../how-to-show-sharepoint-document-list-on-main-crm-form
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156