0
votes

I am trying to display/embed a Power View report from Sharepoint 2013 'document library' into CRM 2013 dashboard.

CRM 2013 - On Premise, Sharepoint 2013 - On Premise.

Below are the steps I followed:

  1. Developed a sample Power View report in Excel 2013 using CRM OData Feed
  2. Uploaded the Power View report (.xlsx) to Sharepoint 2013 Document Library
  3. In CRM, created a System Dashboard and added an IFrame.
  4. Copied the Power View report URL and appended "&action=embedview" to the query string.
  5. Updated the string above into the CRM Dashboard IFrame URL property. Un-ticked the 'Restrict cross-frame scripting ' check box. Saved and Published the dashboard.

(as suggested in - Embedding Power View reports in CRM 2013 , PowerView reports in CRM)

Opening the dashboard in CRM displays 'This content cannot be displayed in a frame' error.

What I have tried so far : Changing IE settings based on -- article

I've seen this one too -- IFraming Sharepoint hosted apps but couldn't to understand what needs to be done. When I tried opening my 'document library' using 'Open in Explorer' and changed the /Forms/AllItems.aspx to include the tag below, it broke the document library.

<WebPartPages:AllowFraming runat="server" />

Please assist.

2

2 Answers

2
votes

A colleague helped me resolve this issue.

The resolution is installing a "PermissiveXFrameHeader" sharepoint solution and enabling the feature for my sharepoint web app. Please refer to this article Sharepoint:Rendering inside iframes

enter image description here

0
votes

I had to create an outbound rule in IIS for the SharePoint app holding the documents. These are the fields I used in creating the outbound rule:

  1. Name
    • Any name you want, I used set x-frame-options
  2. Match
    • Matching scope: Server Variable
    • Variable name: RESPONSE_X-FRAME-OPTIONS
    • Pattern: .*
    • Action type:
      • Rewrite Action properties Value: (LEAVE BLANK)
      • (CHECK) Replace existing server variable value

Then I just applied the rule. It's working for me at present. Let me know if it works for you.