
Object: Process
Field to be checked: Last Date__c
Condition: MONTH (DATEVALUE (Last Date__c)) != Month(Today())
Field to be updated: Status Indicator__c (Picklist values: Red, Green)
Running Time: Daily during Last 5 days of each month
1 réponse
Suggest that you first you read:
* http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm
* http://www.salesforce.com/us/developer/docs/apex_workbook/Content/apex_scheduling_1.htm
* http://www.salesforce.com/us/developer/docs/apex_workbook/Content/apex_scheduling_2.htm
and then work out your code by checking some examples:
* http://sunil02kumar.blogspot.com/2012/10/how-to-schedule-apex-schedulable-class.html
* http://salesforce.stackexchange.com/questions/13159/schedule-the-recurrance-of-an-apex-job
* http://discusssfdcwithme.blogspot.com/2014/05/how-do-we-schedule-class.html