Hii Everyone!! I need to write scheduler apex to send email to case Owner. If priority is high and caseclosed is true, it should send email on 5th business day from case created or updated date.
I would just use a workflow rule or process with a time based action. Then when your criteria is met you can set the time based email alert to fire 5 days after your workflow rule triggered or anothe date field on your case record.
Hope this makes sense and helps,
Shawn