*********************************************************************************** -------------------------------------------------------------------------------------------------------- So the requirement here is to make the refresh to schedule only for 5 times in a day. I have thought changing the Interval of time such that there it happens max for 5-6 times a day like every 4 hours which is 6*4= 24 hours. Is there any alternative way to do so.", "answerCount": 2, "upvoteCount": 0, "datePublished": "2014-04-24T11:43:43.000Z", "author": { "@type": "Person", "name": "Jakson Monteiro", "url": "https://trailblazers.salesforce.com/profileView?u=005300000098AoOAAU", "affiliation": { "@type": "Organization", "name": "Wipro Technologies" } }, "suggestedAnswer": [ { "@type": "Answer", "text": "Yes the dashboard will be for 24hours", "upvoteCount": 0, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A7dSlSAJ", "datePublished": "2014-04-25T04:00:11.000Z", "author": { "@type": "Person", "name": "Jakson Monteiro", "url": "https://trailblazers.salesforce.com/profileView?u=005300000098AoOAAU", "affiliation": { "@type": "Organization", "name": "Wipro Technologies" } } } ] } } Skip to main content
 Here is the code i got  to AutoRefresh Dashboard automatically.

 

<script type="text/javascript">

 

var run;

 

function sa_refresh()

 

{

 

var dashboardButton = document.getElementById("db_ref_btn");

 

dashboardButton.click()

 

}

 

setTimeout(sa_refresh, 10000); //Runs the Refresh function every 5 minutes using Milliseconds (1minute = 60000)

 

run = setInterval(sa_refresh,10000);

 

</script>

 

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

 

--------------------------------------------------------------------------------------------------------

 

So the requirement here is to make the refresh to schedule only for 5 times in a day.

 

I have thought changing the Interval of time such that there it happens max for 5-6 times a day like every 4 hours which is 6*4= 24 hours. Is there any alternative way to do so.
2 answers