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
Salesforce_PMPSalesforce_PMP 

Code to save multiple reports with filter value

I have reports that use Account name as one of the filter criteria. I would like to put a Custom Link or Button on Account page. When that custom link or button is clicked, I like all the reports to be automatically saved with the filter criteria Account name set equal to the account name that is in context. Is there any code sample that would assist me to implement this function?

 

Objective is then to refresh a dashboard that uses all these reports. The user can then just click on that link/button on the Account page and then refresh the dashboard, rather than editing each report manually to change the account name prior to running the dashboard. We have 100's of customers to whom we like to provide their respective dashboard information.