This article demonstrates automatically refreshing dashboards using apex scheduled job that you can plan to run at specific times.
It uses a custom setting to store the dashboard Ids then a scheduled job to get all dashboard Ids from the custom setting and refresh the dashboard at specific time or multiple times a day.
Category: Scheduled Apex
This article walk you through creating an Apex class which is used to send a summary of open tasks to each active standard user in Salesforce, helping them stay informed about their pending tasks. The email is sent from a specified org-wide email address, and the tasks are listed in a table format within the email.