About

Edit photo

Sunday, March 19, 2017

Saturday, March 18, 2017

Scheduling Jobs Simple examples


Example1: Create a task for the opportunity owners who's opportunity is not closed even close date cross the close date. Note: Schedule and Batch classes always should be Global. global class RemindOpptyOwners implements Schedulable { global void execute(SchedulableContext ctx) { List<Opportunity> opptys = [SELECT Id, Name, OwnerId, CloseDate FROM Opportunity ...