Utilities and manufacturing asset service
IoT asset alerts arrive as Platform Events, are correlated into a single Case per incident, and become Field Service work orders that are scheduled, dispatched and synced back to the EAM/ERP.
Illustrative design parameters: an industrial equipment manufacturer servicing tens of thousands of connected assets at customer sites under service contracts, with a field engineering team. The same pattern fits utility networks.
๐ค Two-minute pitch
โ 2 min spokenThis is a composite scenario. Adapt it to utilities or manufacturing as needed.
"I designed proactive asset service for an industrial equipment manufacturer with tens of thousands of connected assets under service contracts.
The flow: the IoT platform detects anomalies, correlates them upstream into one incident per asset fault, and publishes a high-volume Platform Event. An idempotent Apex subscriber upserts one case per incident with the right entitlement. If remote diagnosis can't fix it, a work order goes into Field Service scheduling with skills and a parts check against the ERP, and engineers execute offline in the mobile app, with completion synced back to the ERP.
Key decisions: correlation outside Salesforce; Platform Events over direct inserts for decoupling and replay; Field Service for execution while the ERP keeps the asset master and finance.
Measures: incidents detected before customers call, first-time fix and SLA attainment. Lesson: make every consumer idempotent from day one."
โญ STAR story
Situation
In the pilot, a firmware bug made hundreds of assets emit alerts simultaneously, and an early version created thousands of duplicate cases within an hour.
Task
Stop the case storm and make the design resilient to future cascades.
Action
- Paused the subscriber, so events were retained for replay.
- Moved correlation upstream into the stream processor (incident windowing per asset and fault code), and added a fleet-level cascade detector that raises one parent incident when many assets report the same fault.
- Made the Apex subscriber an idempotent upsert on
Incident_Key__c, incrementing an alert counter for repeats. - Resumed from the stored replay ID and merged the duplicates created earlier.
Result
The next cascade test produced one parent incident with linked child cases per affected customer, instead of thousands of duplicates. Upstream correlation plus idempotent consumers became the reference pattern for IoT integrations.
๐ What I'd do differently
- Design the cascade (fleet-wide) scenario before the first pilot, not after it.
- Agree event allocation sizing with Salesforce early, with monitoring dashboards from day one.
- Bring parts availability into scheduling in phase 1, because it drove first-time fix more than skills did.
๐งญ Lessons learned
- Correlate upstream. Salesforce is the wrong place to process raw telemetry.
- Make every event consumer idempotent from day one. Replays will happen.
- Parts availability is as important as skills for first-time fix, so integrate it early.
- Decide clearly which system owns the asset master and work orders, then sync, don't share ownership.
๐ Outcomes and metrics
KPIs the design is measured against. This is a composite, so no figures are claimed.
| KPI | Why it matters |
|---|---|
| % incidents detected before the customer reports them | Proactive service |
| First-time-fix rate | Right skills, parts and asset history on site |
| Response and restore SLA attainment | Contractual commitments (milestones) |
| Cases per incident (de-duplication effectiveness) | No case storms |
| Remote resolution rate | Avoided truck rolls |