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
Jay Choi 38Jay Choi 38 

Trigger that act regularly in monthly base


Hi all, 
I want to make triggers that automatically move certain rows from table A to table B once in a month until the end of expiration date. 
I thinked about using a time trigger, but it doesn't work as I expected. 
Is there a way to make this possible? 
Any hints or advice is really appreciated. 
Thank you!
ANUTEJANUTEJ (Salesforce Developers) 
Hi Jay,

Have you tried checking the schedulable apex that you can schedule to run once every month?

Link to Schedulable apex: https://trailhead.salesforce.com/content/learn/modules/asynchronous_apex/async_apex_scheduled

Looking forward to your response and in case if the above way helped can you please choose this as the best answer so that it can be used by others in the future.

Regards,
Anutej