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

How to change dashboard on home page layout for all users


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.

Sameer Tyagi SFDCSameer Tyagi SFDC
Hi Pallavi, 

Please review this. 

idea :

<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');
window.onload = setInterval(refresh);


Thanks & Regards, 
Sameer Tyagi