Thursday, May 24, 2012

dashboard auto refresh


Auto refreshing dashboard:


This is the feature many sfdc admins have been asking for.... Currently it is not possible to refresh the dashboard automatically when the sfdc user logs in to salesforce.com.


use the following steps to refresh the dashboard( automatically...after 5 seconds) when the user logs in to the salesforce OR the user clicks the home tab:- 


1) Create a new custom Home Page Component( type:HTML)


2) Add the following code:-(click the show html button before pasting the code)
<script type="text/javascript"> function refreshDashboardTimeout() {var dashboardButton = document.getElementById("db_ref_btn");dashboardButton.click()}window.setTimeout("refreshDashboardTimeout();", 5*1000); </script>


3) save and Add this component to your Home Page Layout.


quiet simple....right?? :)