User Story
As a Salesforce Administrator,
I want to schedule a batch job to calculate and update the AnnualRevenue
field for accounts based on their associated opportunities at 11:00 PM daily,
so that the process handles millions of records efficiently, ensuring data consistency without interrupting business operations.
Acceptance Criteria:
- The batch job runs automatically at 11:00 PM daily.
- The process calculates
AnnualRevenue
for each account based on the total Amount
field of its associated opportunities.
- Accounts with no associated opportunities or no valid
Amount
values remain unchanged.
- The process handles large datasets by dividing accounts into manageable chunks using Salesforce's batch processing.
- Any errors during the process are logged for review, and successful updates are reflected in the system.