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
Mahesh WalimbeMahesh Walimbe 

Can I use process builder to run a batch job?

Is there anyway I can schedule a Workflow rule/process builer to execute at a specific time of the day everyday, rather than running when something happens to a record(created/updated).

scenario - I want to find out all the cases that are not closed, 7 days after they are created. I would like to then update the field priority to high.

Workflow rules/process builder executes only after a record is either created or updated but what if I want to take action on all records matching a criteria, repeatedly everyday.  

Thanks
Mahesh
RainnyCloudyRainnyCloudy
Your best bet is to use a apex batch job that implements scheduable. Workflows and process builder, like you said, run only if a record is created or updated.
Parker EdelmannParker Edelmann
Try creating a process that runs on record create only. Criteria for the first node would be Closed= false. For the time dependant action, set the schedule for one week after create and tell it to update the priority to high if the case is still not closed.

User-added image

User-added image

User-added image

User-added image

I hope this helps you.

Thanks,
Parker