Skip to Content
Platforms

Inspect a Salesforce Platform Event before you blame middleware

2 min read

A developer inspecting event logs on screen with a magnifying glass over the data

A downstream system goes quiet. The instinct is to open the middleware, the queue, the connector — anything but Salesforce. Nine times out of ten, that's the wrong place to start.

Before you trace the rest of the integration, confirm the source of truth: did Salesforce actually publish the event you expected, with the payload you expected?

Tip

Verify the producer before you debug every consumer. One check at the source saves hours of chasing symptoms downstream.

Watch the event on the wire

Subscribe to the platform event channel directly and trigger the action that should fire it. If nothing shows up, your problem is upstream — a flow that didn't run, a validation rule that blocked the record, a governor limit you didn't see.

Subscribe with the CometD replay client
# Salesforce CLI — stream a platform event channel
sf api request streaming \
  --channel /event/Order_Event__e \
  --replay -2

Compare what comes across to what you assumed. Field API names, data types, and null values are where assumptions quietly die — a Status__c that's blank, an amount that's a string, a correlation id that never got set.

Example platform event payloadJSON · example-platform-event.jsonDownload

Then, and only then, look downstream

Once you've confirmed the event published with a clean payload, you've cut the problem in half. Now the question is narrow: why didn't the consumer act on a message you can see with your own eyes? Replay id gaps, subscriber errors, and retry storms all live here — but you're debugging one system instead of five.

Watch out

Platform events aren't guaranteed to be delivered forever. If your subscriber was down past the retention window, the event is gone — reconcile from the records, don't wait for a redelivery that isn't coming.

This is the whole philosophy behind an Integration Spine™: every system exposes what it did, so you can trust the flow instead of guessing at it.

Related tipFormAssembly → Salesforce: the mapping mistake that silently drops leads

More Bytes

MEET THE FRAMEWORK

One framework. Every system, connected.

Integration Spine™ ends the manual handoffs and disconnected tools — one architecture your teams and AI can rely on.

Integration Spine architecture connecting business systems, data, workflows, and AI.