function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vikas U MishraVikas U Mishra 

Add VisualForce page or Lightning Component into Lightning Dashboard

Do we have any way to add VisualForce page or Lightning Component into Lightning Dashboard.

We have line charts with 5 data series which has been build using VF page. NOw we are looking to include same into Lightning Dashboard.
NagendraNagendra (Salesforce Developers) 
Hi Vikas,

You can do this but its a few steps.  Your lightning app is URL addressable, so capture the URL from the browser (format is: https://na17.lightning.force.
com/<namespace>/<yourapp>.app) - e.g. one of mine is : 

https://na17.lightning.force.com/bblightning/RecordCountsApp.app

Then create a Visualforce page that includes this app as an iframe:
<apex:iframe src="https://na17.lightning.force.com/bblightning/RecordCountsApp.app" />
You can then add this Visualforce page to the dashboard and everything should work as expected - again, here's a screen shot of my record counts component inside a dashboard:

Hope this helps.

Please mark this as solved if the information helps so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Best Regards,
Nagendra.
Vikas U MishraVikas U Mishra
We have requirement to add VF or LIghtning component into Lightning Dashboard.
What you are referring is adding Lightning Component into Classic Dahsboard.

Regards,
Vikas
Kanav Khurana 16Kanav Khurana 16
Hi @vikas. Were u able to figure a way to do this?
Sukhpreet Lotey 6Sukhpreet Lotey 6
I am looking for the same solution as well. Any leads?
Evgeny Soloho 11Evgeny Soloho 11

As of now (01/2020) this is not possible - see below recent respond from SF Support 

Please vote here 
https://success.salesforce.com/ideaView?id=0873A000000lITwQAM

************

Hi,

Thank you for your time over the call,

I have taken ownership of your case ID#25405753, with subject "Visual Force components on Lightning dashboards".

From case description, I understand that you wanted to add visual force components in lightning dashboards. As per standard salesforce functionality, this is out of scope.

Currently, we do have an Idea where you can go ahead and up vote for it and there are many chances it will get implemented in our upcoming releases.

Please up vote on the below link:

Ability to add Lightning Components to Dashboards
https://success.salesforce.com/ideaView?id=0873A000000lITwQAM

Alternative;y, you can add the visual force component in classic interface.

Please let me know if above information was useful for you.

In case, If I didn't hear from you, my next follow up will be tomorrow between 10:00 AM and 10:30 AM (EST).

You will also receive an invitation in which you can choose the time for an appointment as per your convenience.

Also in case if you want to make any changes to the schedule, please feel free to update the case comments or reply to my email and I'll be happy to work as per your convenience.

I look forward to your response.

Regards,
Komal Tiwari
Global Customer Success Centre

Ajay MeharAjay Mehar
@Evgeny, thank you for sharing the information. I hope they add this feature soon in the upcoming releases.