13

I was so excited about the Spring '14 Embed Report Charts in Visualforce Pages as a way to present data visualizations on a public site, and now it looks like that's not possible.

I created a page that looks basically like the release notes sample:

<apex:page >
    <analytics:reportChart reportId="00OW0000000Spru"></analytics:reportChart>
</apex:page>

I tested it inside the authenticated environment, where it works fine, then added it to a Site. There, I get the error: To view the report chart, you need both the Run Reports permission and access to the report's folder. But, Run Reports is not a permission I can grant to the Site Guest User.

Anybody have any ideas for a workaround? Or is it not going to be possible to show report charts on a public site?

1 Answer 1

12

You aren't going to be able to use out of the box components (like <analytics:reportChart>) to run reports as the guest user.

If you want to display reporting data to unauthenticated users, you're going to have to query the data yourself in Apex and use a third party tool (like D3.js) or the built in apex:chart component.

2
  • Ryan, Can you confirm my assumption that the Analytics API is also not available to the site guest user?
    – Keith C
    Jun 6, 2014 at 9:46
  • you are correct, the analytics API is not available to the guest user.
    – Ryan Guest
    Jun 6, 2014 at 20:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .