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
kkr.devkkr.dev 

How to run apex trigger every day without schedule apex ?

Hi All,

 

    I need to run apex trigger every day.Is there any way to do this without writing the logic in schedule apex ?

 

Thanks

kiranmutturukiranmutturu

with out writing a cron job this is impossible...as we know trigger block will execute on DML...so there should be a DML operation by a native call or API if you dont require the cron job to perform the logic through apex....

Navatar_DbSupNavatar_DbSup

Hi,

 

No you can't fire a trigger every day, without writing the logic in schedule apex . As triggers are only fired in response to certain events on a particular table in a database.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

AmitSahuAmitSahu
Can you use time based workflow and use the field update?
kkr.devkkr.dev

Thanks All for the reply.So without cron job its not possible to fire trigger.Can we have dummy update through cron job and that will fire the trigger?