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
bhanu_prakashbhanu_prakash 

send email in delay

Hi Team,

I need to send mail from case quick action, when user click on send email button. Email need to be sent in specific time like 5,10,15 later. Meanwhile if your make an mistake they need to stop previous mail and need to send email . Can we achieve in salesforce ?

Thanks
 
Raj VakatiRaj Vakati
You can able to do it like this .. 
  • Create a quick action "Send Email " This action will hold the logic to flag that you need to send the email from the case .. ( Lets say flag is marked_for_emailsend__c) 
  • Now created an apex scheduler job that will collect all the case records that  are set to marked_for_emailsend__c = true and send email using the apex scheduler