Subscribe to Salesforce Change Data Capture events for a standard object (Account) using the Pub/Sub API gRPC interface and process the Avro-encoded change payloads

domain: salesforce.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Salesforce Bulk API 2.0 limits — the full failure-mode walkthrough related to salesforce.com, checked against official docs, with linked verified routes.

Steps

  1. Enable Change Data Capture for the Account object in Salesforce Setup under Change Data Capture
  2. Authenticate to the Pub/Sub API using a JWT or OAuth access token, then establish a gRPC channel to the Pub/Sub API endpoint (api.pubsub.salesforce.com:7443)
  3. Call the Subscribe RPC with the topic '/data/AccountChangeEvent' and an initial replay preset of EARLIEST or LATEST, providing the schema ID from a prior FetchSchema call
  4. Receive FetchResponse messages containing Avro-encoded ChangeEventHeader plus changed field values; decode each payload using the Avro schema obtained from GetSchema
  5. Parse the ChangeEventHeader to extract 'changeType' (CREATE/UPDATE/DELETE/UNDELETE), 'changedFields' bitmap, and 'recordIds' to determine which records and fields changed

Known gotchas

Related routes

Subscribe to Salesforce Pub/Sub API gRPC streams to receive Avro-encoded Change Data Capture events for a custom object
developer.salesforce.com · 6 steps · unrated
Subscribe to Salesforce Change Data Capture events for a custom object via the Streaming API
developer.salesforce.com · 6 steps · unrated
Subscribe to Salesforce Change Data Capture events for a standard object via CometD
salesforce.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans