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
NevDevNevDev 

How to send an email notification if a task is overdue

I would like to be able to send an email notification to a management if a task is overdue. How can I do this?
Veenesh VikramVeenesh Vikram
Hi Nevin,

You would have to Create a batch class for achieving this. The batch will run every Night (say 00:00 AM) and will pick up all tasks who were due yesterday, and send email notifications corressponding to each task.

Hope this will help you Nevin

Veenesh
GauravGargGauravGarg
Hi Nevin,

How are we determining the Task record is Overdue?
If we have any field determining the Task is overdue, we can use Workflow rule to send Email notifications. 

Thanks,
Gaurav
NevDevNevDev
Hi Gaurav,

I don not have a field built to determine the Task record Overdue. If I build this on the Task object can I build this workflow?
GauravGargGauravGarg

Hi Nevin,

Yes, once we have a field determining the Task is overdue, we can create workflow for this. 

Thanks,

Gaurav

GauravGargGauravGarg
Hi Nevin,

Please check above answer, and if you found that is possbile let me know so that I could help in implemeniting the scenarios.

Thanks