You need to sign in to do that
Don't have an account?
Michael_Mantouvalos
Export a dashboard's Image URL, so to be send via email with SingleEmailMessage
Hello Everyone,
Is there a way to access the URL of a Dashboard's Image that is generated in Classic salesforce, so I can attach it to an email and send it to someone?
I would like to query the Dashboard that I need, then find its image URL , and then attach the URL to an Email body through SingleEmailMessage
Is this possible?
Thank you.
You can only query the fields available in the dashboard. See Dashboard Object Metadata
If you want to get a dashboards Image see the following
Dashboard Image Resource
Here is a sample code for sending an email, in general, using singleEmailMessage Let me know if it helps