+ Start a Discussion
Pallavic14Pallavic14 

How to change dashboard on home page layout for all users

Hi,

On homepage I have dashboard snapshot enabled. And Every year we change the dashboard. And users need to manully go into Customize page and pick that dashboard. 
Is there a way to write a script to update to new dashboard with out doing this manually.

THanks
Pallavi
Sameer Tyagi SFDCSameer Tyagi SFDC
Hi Pallavi, 

Please review this. 

idea : https://success.salesforce.com/ideaview?id=08730000000HvbLAAS

<html>
<head>
<script type="text/javascript">
var run;
function refresh()
{
var dashboardButton = document.getElementById('db_ref_btn');
if (dashboardButton == null)
  {
  alert('Please add Dashboard Snapshot to the Home Page');
  }
else
  {
  dashboardButton.click()
  }
}
window.onload = setInterval(refresh);
</script>
</head>
</html>

ref:https://developer.salesforce.com/forums/ForumsMain?id=906F00000008oTZIAY

Thanks & Regards, 
Sameer Tyagi
http://mirketa.com/