Mustafa.
Back to all projects

VoltStream Mobility — Channel-partner attribution for EV charging sales

B2B EV charging CRM where one field on an Opportunity auto-links the deal to the right channel partner via Apex. Built around the German e-mobility hiring market (EnBW, Ionity, Allego, Mercedes-Benz Mobility).

Year
2025
Role
Salesforce Developer
Tech stack
ApexCustom ObjectsTrigger FrameworkSOQLLightning App BuilderReports & Dashboards

The problem

Channel-partner attribution is a real workflow gap on most B2B Salesforce orgs: sales reps enter Opportunities manually and forget to credit the reseller that sourced the deal, so revenue-by-partner reports go dark. Manual lookup is slow and error-prone, and German e-mobility companies sell through electrical contractors, auto dealers, hotel chains, and parking operators — each tracked as a separate channel.

The approach

Custom Reseller__c object with Company_Email__c as an indexed unique external ID. Sales rep enters the reseller email on the Opportunity; an after-insert/after-update Apex trigger (Kevin O'Hara framework, four-layer pattern: trigger → handler → service → matcher) does a case-insensitive SOQL lookup against active resellers and populates the lookup field. Lookup relationship chosen over master-detail so revenue data outlives partner churn. Permission set scoped to the Sales profile.

The outcome

80 of 80 Apex tests passing with 100% coverage including bulk, edge, and negative cases. Reseller-attributed revenue dashboards work out of the box. Reusable pattern transferable to any channel-driven B2B org in DACH. Next phase: extend the schema with Salesforce CPQ for hardware-bundle pricing.