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

apex trigger to execute on user object when date = TODAY

we have an out of office checkbox on the User object and an out of office start date and out of office end date.  Would love when the end date = TODAY the checkbox gets unchecked automatically.  I tried a workflow but the user account actually has to be edited in order for it to update.  Is there an apex trigger that can accomplish this?
Unfortunately Triggers also require a DML operation as well.  This could be accomplished with a scheduled batch Apex job though