I'm investigating the possibility to show a Web Part inside an iFrame - in a non SharePoint environment.

We want to build an integration between a CRM sytem and SharePoint. We want to work with SharePoint documents from the CRM, but still let SharePoint handle all the documents.

Therefore I would appreciate if anyone could help med with:

  • Is it possible to render a Web part inside an Iframe - non SharePoint site?
  • Are there any know restrictions/difficulties?

From the CRM perspective, no idea! But I guess, basically, you can create a page in SharePoint where you provision your webpart.

Then you can create an iframe in CRM with the url to the pageUrl + "isDlg=1" which will hide the header and left nav etc.

You must, though, make sure that all users that will be able to see this in CRM also has access to the SharePoint page (to not get an access denied)

  • I dont think we can put a sharepoint webpart on a non-sharepoint page. can we? – variable Mar 27 '14 at 10:42
  • From the CRM prespective, its a custom CRM so everything is possible :) So from what you think there are no restrictions, from the SharePoint part, of displaying a web part inside a IFrame. Thank you. – JeppePepp Mar 27 '14 at 10:46
  • variable: So you have different thoughts? I've tried to find answers like this. Don't want to stumble upon a basic issue when taking this further. Do you have any link or explanations that you want to share? – JeppePepp Mar 27 '14 at 10:49
  • @variable, who said it should be anything else than a SharePoint page? – Robert Lindgren Mar 27 '14 at 10:50
  • Please read the brackets in the question. – variable Mar 27 '14 at 10:52

For SharePoint 2010 there won't be an issue in rendering regular pages in an iFrame, but for SharePoint 2013 (and also Excel Services pages) you'll probably run into X-FRAME-OPTIONS: SAMEORIGIN issues.

For SharePoint 2013 it is the preferred way to add <WebPartPages:AllowFraming runat="server" /> to the page you're framing. (http://styledpoint.com/blog/including-sharepoint-2013-in-an-iframe-without-x-frame-options-error/)

For Excel Services in SharePoint 2010 you could use an HttpModule that removes this header. (http://www.sharepointblogs.be/blogs/vandest/archive/2012/01/03/sharepoint-2010-office-web-apps-and-iframes.aspx)

  • Ok good to know! Thx – JeppePepp Mar 28 '14 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.