Architecture Overview
The solution uses a three-layer architecture: a Salesforce data layer (Opportunities, Products, Pricebooks, Custom Forecast Objects), a transformation layer powered by CRM Analytics Dataflows and Recipes that normalise and join pipeline data, and a presentation layer of templated dashboards and custom report types. Dataflows run on a nightly schedule with optional real-time refresh triggers via Platform Events. All forecast logic is encapsulated in reusable SAQL measures, ensuring consistent calculations across every dashboard and report.
Database Schema – Forecast Extension Objects
| Field Name | Data Type | Description | Nullable | Source Object |
|---|---|---|---|---|
| ForecastViewId | ID (18) | Unique custom forecast view identifier | No | Custom Object |
| OpportunityId | Lookup(ID) | Related Salesforce Opportunity | No | Opportunity |
| ForecastCategory | Picklist | Extended category beyond standard four types | No | Custom Field |
| WeightedAmount | Currency | Probability-adjusted pipeline value | Yes | Calculated Field |
| PeriodEndDate | Date | Forecast period close boundary | No | Fiscal Calendar |
Workflow
- Opportunity records updated in Salesforce trigger a Platform Event.
- CRM Analytics Recipe ingests the event and refreshes the Forecast Dataset.
- SAQL measures recalculate weighted amounts, quota attainment, and gap-to-goal.
- Dashboards propagate updated figures to all subscribed users within 15 minutes.
- Custom Report Types provide supplementary tabular exports for finance reconciliation.
Deployment Notes
- CRM Analytics must be provisioned on the ERPA Salesforce org prior to deployment.
- All custom objects and fields deployed via unlocked package for change-set independence.
- Sandbox full-copy testing required before production release; UAT window: 5 business days.
- Profile-level permissions must be configured to restrict forecast view access by role hierarchy.
- Estimated implementation timeline: 6–8 weeks including UAT and hypercare support.