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
dave6dave6 

How to refresh dashboards of linked accounts?

I'm using the Salesforce1 Reporting REST API to refesh dashboards of the admin account and this is working fine.  However we have several accounts that are linked to this account as the master/adim account and I need to refresh those accounts too.  How can I do this?  I'd much prefer to be able to refresh those accounts from this one rather than having to code to login into the linked accouts and refresh separately.  Can this be accomplished somehow?
NagaNaga (Salesforce Developers) 
Hi Dave,

There is an idea for 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

Best Regards
Naga Kiran