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
Murali KrishnaMurali Krishna 

Regarding automation of email

Once after creating a lead is generated,from next day day1,day2,day3 and so on day ‘n’(50) every day an email has to to be sent and day ‘n+1’(51) sending email has to be stopped automatically. How this can be achieved?

Best Answer chosen by Admin (Salesforce Developers) 
sandeep@Salesforcesandeep@Salesforce

It is possible by creating one field update and Workflow.

1. We need to create a fied on object of LEAD toStopEmails(default value = false)

2. Workflow which will be executed while check if toStopemails == false and apply time based email alert ections under this workflow

3. field update which will update toStopEmails to true just after n days so on n+1 day trigger may not send email.