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
mahesh reddy 4mahesh reddy 4 

In an Application i want to send an reminder email after every three days to email id in an appointment upto date of onboarding expires. For this i am using trigger ? could you please suggest me how to achieve this requirement?

The requirement is i want to send an email alert to appointment after every three days upto date of on boarding expires. I am using trigger to achieve this requirement. Please suggest me how to achieve this requirement. 
NagaNaga (Salesforce Developers) 
Hi Mahesh,

I would suggest you to use a time based workflow to achieve this scenario.
A time based workflow will fire based on the time which elapsed after the deadline expired.

A similar example is in the link below:

http://salesforce.stackexchange.com/questions/11080/workflow-to-send-monthly-alerts-to-client?rq=1

Please let me know if this helps.

Best Regards
Naga Kiran
BalajiRanganathanBalajiRanganathan
Time based workflow might not be good option if the difference between the appointment date and expiration date is more.
The number of workflow rule you have to write is based on the diffrence (between dates) allowed.

The other option would be to have batch apex which will pull the record with some conditions and sends the email. you can use one system field
to track the last email sent date.
BalajiRanganathanBalajiRanganathan
You can schedule the batch apex to run daily.