You need to sign in to do that
Don't have an account?
Need to schedule apex class to fire trigger at 12:00AM EST every day
Context: Our sales users have a finite amount of time to work an Account before it can be pulled from their ownership and reassigned. I currently have a formula field that identifies if an Account can be reassigned by populating "YES" or "NO".
Desired Outcome: Run a trigger at midnight everyday that takes all Accounts where the custom forumla field Up_for_Reassignment__c says "YES" and reassigns them to the user's manager.
I know this involves a fairly simple trigger, but then it also requires an Apex Class that uses the Scheduler. I am not well versed in Apex Coding. Does someone have a standard Apex class built with the scheduler in it that I can insert my trigger into?
Thanks,
All Answers
Hey, Thanks!
EDIT: Disregard previous message I just deleted... I figured out my issue.
Now that I have this new Apex Class created and saved, how do I actually go about scheduling it to run?
Setup -> App Setup ->Develop -> Apex Classes
Click on the Schedule Apex button, give it a name, choose this Apex Class, check Weekly and select all days, if you want to schedule daily. Select the start and end date, the time of execution and save.
Top notch man. I appreciate your help.