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
Syam Reddy 11Syam Reddy 11 

Email notification on every hour until Status change

Hello All,

I have a senarion on invoice approval notification below..

Once user submit Invoice for approval status will get change to "pending approval", and then approver recieve one email notification for one time after submitting, but i wanted to notify approver every one hour until he approved and status will get changes to approved.

Can we achive this by using workflow or process builder?? Kindly help me on the same.

Thanks!
SyamReddy.
Manj_SFDCManj_SFDC
Hello Syam,

you need to use the batch apex and schedule it using the cron expression
you can refer this, 

Batchjob obj= new Batch job();
 
String cron = '0 0,60 * * * *';
 
System.schedule('job name', cron, obj);  (ini the Execute Anonymous Code window of Developer Console)

Please mark this as the answer, if it helos you.

Good luck !
Manj_SFDCManj_SFDC
even you can invoke this class from the process builder