You need to sign in to do that
Don't have an account?
Help me with batch and scheduled jobs
1. Create a batch class that summarizes all Opportunity Amounts for each Account;
2. An email should be sent to the primary contact of all Accounts, containing a table with the Closed Won/Open/Closed Lost summarized Opportunity Amounts;
3. Schedulable class that calls the batch class should be created;
4. The class should be scheduled from the Developer console. Please provide script to schedule the job daily at 10:00 AM, once a week (Friday at 1:00 PM), once a month(Last Friday of the Month at 6:00 PM).
2. An email should be sent to the primary contact of all Accounts, containing a table with the Closed Won/Open/Closed Lost summarized Opportunity Amounts;
3. Schedulable class that calls the batch class should be created;
4. The class should be scheduled from the Developer console. Please provide script to schedule the job daily at 10:00 AM, once a week (Friday at 1:00 PM), once a month(Last Friday of the Month at 6:00 PM).
May I suggest you please refer the below link for reference.
- https://help.salesforce.com/articleView?id=code_schedule_batch_apex.htm&type=0
- https://trailhead.salesforce.com/en/modules/asynchronous_apex/units/async_apex_scheduled
hope it will be helpful.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar
All Answers
May I suggest you please refer the below link for reference.
- https://help.salesforce.com/articleView?id=code_schedule_batch_apex.htm&type=0
- https://trailhead.salesforce.com/en/modules/asynchronous_apex/units/async_apex_scheduled
hope it will be helpful.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar
Thanks !