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
Simon WhightSimon Whight 

Force Salesforce To Edit All Contract Records

Is there a way to force Salesforce to edit all Active Contract records?

I have a need for an Apex trigger to run when a certain date is hit, however it will be unlikely that the record will be updated when that date is hit (so no Update or Edit) and the date with which to run the trigger will be variable (so no pre-determined time delay of X months).

Hi!  I usually handle something like this with a scheduled Apex job:

Perhaps with a hidden checkbox or date field on the Contract record to indicate that it needs to be processed.  If they can't be processed in one run due to governor limits, make it a batch job.