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
Lauren BLauren B 

How to send reminder emails through time dependent workflow until the criterion matches.

Hi All,

I have a requirement, When user submits the application, he gets a confirmation email to verify their email. Until he verifies the email, status at the backend would be Not confirmed but once he verifies the email status will be confirmed.  So my requirement is, if he is not verifying the  email so can i send reminder emails at the specific intervals and till the status is confirmed. I am able to send at specific intervals but not getting any logic for till the status is confirmed.
VinayVinay (Salesforce Developers) 
Hi Lauren,

You can send time-dependent email alert based on criteria = Not confirmed and that should work

Thanks,
Lauren BLauren B
Thank you, Vinay! I have already given this critera. But how to send until status is confirmed.
VinayVinay (Salesforce Developers) 
Try below workaround to setup a recurring scheduled process.

https://salesforcesidekick.com/2015/12/16/how-to-setup-a-recurring-scheduled-process-builder-andor-flow/

Else you can use Batch apex and schedule a batch daily who will pick all the matching records and will send email on them.

https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_batch

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,