Technical Specification

ERPA – Extended Forecasting Architecture

Version 1.0  |  Salesforce CRM Analytics Integration

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
ForecastViewIdID (18)Unique custom forecast view identifierNoCustom Object
OpportunityIdLookup(ID)Related Salesforce OpportunityNoOpportunity
ForecastCategoryPicklistExtended category beyond standard four typesNoCustom Field
WeightedAmountCurrencyProbability-adjusted pipeline valueYesCalculated Field
PeriodEndDateDateForecast period close boundaryNoFiscal Calendar

Workflow

  1. Opportunity records updated in Salesforce trigger a Platform Event.
  2. CRM Analytics Recipe ingests the event and refreshes the Forecast Dataset.
  3. SAQL measures recalculate weighted amounts, quota attainment, and gap-to-goal.
  4. Dashboards propagate updated figures to all subscribed users within 15 minutes.
  5. Custom Report Types provide supplementary tabular exports for finance reconciliation.

Deployment Notes