How to Embed a Standard Salesforce Dashboard into a Visualforce Page

7:08 PM

NOTE: This is not a recommended procedure, please try this only as a last resort. This hack might break at any time with Salesforce's new releases, so please exercise caution.

We know it is possible to embed a Visualforce page into a Dashboard, but how about the reverse?

Sometimes, we might need to embed the standard Salesforce Dashboards into a Visualforce Page. Here is something i found out that was interesting and simple.

Here is what we are going to do. This is a standard dashboard.

We extract the dashboard and embed it into a Visualforce page like this...

Instead of explaining this, it's better to watch how to do it. Hence, i made a video of the procedure. Click here to watch it.


  1. This is nice, but are you sure that the result is dynamic ? When the data changes, does the gauge increase ?

    1. yes, the gauge refreshes when the underlying dashboard is refreshed

  2. Now days Business PBX come packed with a lot of features. You can basically customize your business PBX to fit your business needs. When you see the features, you will know how your current phone system is not good enough. I have been using hosted pbx from Telcan. With this business PBX, I can customize the welcome greeting, route calls to multiple numbers, even program what phone number to call at what time, have a professional voicemail, get my voicemail emailed and the list goes on. It is very easy to set up using wizard. Check out PBX

  3. Finding a Business Phone Service that is affordable can be easier than you think. Learn all of the advantages that will lead your customers to believe you are actually a large company.

  4. This comment has been removed by the author.

  5. This comment has been removed by the author.

  6. urgent

    ty it works well
    the gauge refreshes only when the underlying dahboard is refreshed.

    wen i add this vf page in the page layout wud not show me the updated results ,unless i go to the dashboard n refresh it ....
    suppose if i forget to go to dashboard to refresh it evertym , it wud cz a problm i think ..

    any othr way out in this ...

  7. Hi I want to pass the record ID in this dashboard. How I can do that?