How to display Dashboard in visualforce page in Salesforce?

<apex:page >
<apex:iframe src="https://na12.salesforce.com/01ZU0000000NHAt" scrolling="true" id="theIframe"/>
</apex:page>

Here src is the source of the Dashboard. See the below figure to get the Dashboard URL.



Cheers!!!

11 comments:

  1. Yes, it works fine. but we cannot use this VF page in Customer Portal. If you have any trick to show the Dashboard in Customer portal, please reply me.

    ReplyDelete
    Replies
    1. Check whether the vf page is available to Customer portal users profiles.

      Cheers!!!

      Delete
  2. You cannot use the Dashboards in CPortal - you need to flip to using Communities and create a Home Page Component bringing in the dashboard URL in an iFrame. Associate that component to that user's profile and boom.

    ReplyDelete
  3. How to display reports in visual force page?

    ReplyDelete
  4. I have to place report url instead of dashboard url,but my report is not displayed after running visualforce page.......is their any problem in my developer account

    ReplyDelete
    Replies
    1. I am not getting dashboard also.....i have to checked 3 developer accounts,2 developers accounts url like:https://ap1.salesforce.com and my developer account link like:https://na15.salesforce.com.
      In ap1.salesforce.com i am getting dashboard and na15.salesforce.com i am not getting dashboard in visualforce page....y?

      Delete
    2. http://www.infallibletechie.com/2014/04/how-to-show-report-chart-in-visualforce.html

      Check this!!!

      Delete
  5. I have used your idea and its working. But after opening this dashboard page, when i click any other tab the url is not changing. The content is displaying correctly but url remains for the dashboard page.

    ReplyDelete
    Replies
    1. Check this

      http://www.infallibletechie.com/2014/04/how-to-show-report-chart-in-visualforce.html

      Delete
  6. Salesforce Admin Online Training,
    Salesforce CRM Online Training,
    Salesforce Developer Online Training,
    ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING
    The 21st Century Software Solutions of India offers one of the Largest conglomerations of Software Training, IT Support, Corporate Training institute in India - +919000444287 - +917386622889 - Visakhapatnam,Hyderabad
    Salesforce Admin Online Training, Salesforce Admin Training, Salesforce Admin, Salesforce Admin Online Training| Salesforce Admin Training| Salesforce Admin|
    Salesforce CRM Online Training, Salesforce CRM Training, Salesforce CRM, Salesforce CRM Online Training| Salesforce CRM Training| Salesforce CRM|
    Salesforce Developer Online Training, Salesforce Developer Training, Salesforce Developer, Salesforce Developer Online Training| Salesforce Developer Training| Salesforce Developer|
    Salesforce Admin Online Training, Salesforce Admin Training, Salesforce Admin, Salesforce Admin Online Training| Salesforce Admin Training| Salesforce Admin|
    Salesforce CRM Online Training, Salesforce CRM Training, Salesforce CRM, Salesforce CRM Online Training| Salesforce CRM Training| Salesforce CRM|
    Salesforce Developer Online Training, Salesforce Developer Training, Salesforce Developer, Salesforce Developer Online Training| Salesforce Developer Training| Salesforce Developer|
    Visit: http://www.21cssindia.com/courses.html

    ReplyDelete