+ Start a Discussion
StaciStaci 

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?
sfdc_ninjasfdc_ninja
Unfortunately Triggers also require a DML operation as well.  This could be accomplished with a scheduled batch Apex job though