Sales teams often struggle to identify opportunities that are at risk due to incomplete information or missing sales process activities.
This solution automatically evaluates opportunity health based on key sales criteria and assigns a health score and status to help sales teams prioritize action.
This project demonstrates a custom Sales Cloud opportunity health scoring solution built using Apex, Triggers, Custom Fields, and Lightning Record Pages.
- Custom Opportunity Health Score field
- Custom Opportunity Health Status field
- Apex service class for health calculations
- Trigger automation on insert and update
- Unit tests with 100% pass rate
| Criteria | Points |
|---|---|
| Amount populated | 25 |
| Synced Quote present | 25 |
| Next Step populated | 25 |
| Delivery/Installation Status populated | 25 |
- 90-100 = Excellent
- 70-89 = Healthy
- 40-69 = Needs Attention
- Below 40 = At Risk
- Salesforce Sales Cloud
- Apex
- Triggers
- Salesforce DX
- Git/GitHub
- SOQL
3 unit tests validating:
- Excellent opportunity health scenario
- At Risk opportunity health scenario
- Trigger execution and score recalculation
- Add custom Lightning component for health visualization
- Add scheduled recalculation job
- Add email notification for At Risk opportunities
- Add custom report and dashboard





