Setting Current Time Period Fields
You can automatically set the current time period field on a region
, practice
, group
, resource
or project
by using Batch Apex to schedule a job that executes a new Apex class.
To schedule a Batch Apex job:
- From Setup, click Develop | Apex Classes | Schedule Apex.
- Enter a job name, such as Nightly Time Period Updates.
- Enter the Apex Class name: RPGPRMaintenanceSchedule.
- Enter the Frequency: Weekly.
- Enter each day that you want the job to run on.
- Enter a Start Date of today, and an End Date well into the future.
- Enter a Preferred Start Time. We recommend that you set this to a time outside of business hours.
- Click Save.
To check whether a job is scheduled and whether it has run, from Setup click Monitoring | Scheduled Jobs.