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
Fares AlsyoufiFares Alsyoufi 

How to create a trigger (fires every 24 hours) that fires a process created on the process builder?

I have created a process on process builder that checks for certain critiera. IF criteria is met then process assigns task to one of the account managers. Because of the limitations with process builder, I haven't be able to run this process periodacly as I wish. The trigger in process builder is limited to Create or Update records..

Can someone walk me through how build such a trigger in Apex? 

Thanks,
Fares Alsyoufi.
Akhil AnilAkhil Anil
Hi Fares,

You can setup workflows to run periodically by getting a bit tricky with them. I have explained in detail on how to achieve this in my blog post below.

https://force-base.com/2016/11/13/power-of-point-click-series-2-learn-how-to-set-up-recurring-time-based-workflows-in-salesforce/

Kindly mark it as an answer if that works for you !