salesforce-webhooks-events

Featured

Implement Salesforce Platform Events, Change Data Capture (CDC), and Outbound Messages. Use when building real-time integrations, listening for record changes, or implementing event-driven architecture with Salesforce. Trigger with phrases like "salesforce events", "salesforce CDC", "salesforce platform events", "salesforce streaming", "salesforce outbound message", "salesforce real-time".

AI & Automation 2,359 stars 334 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Salesforce Webhooks & Events ## Overview Salesforce doesn't use traditional webhooks. Instead, it offers Platform Events, Change Data Capture (CDC), and Outbound Messages for real-time data flow. All use the CometD (Bayeux) streaming protocol via jsforce. ## Prerequisites - jsforce installed with connection configured - Platform Events or CDC enabled in your org - Understanding of publish/subscribe patterns - Express.js for Outbound Message endpoints ## Event Mechanism Comparison | Mechanism | Direction | Use Case | Retention | |-----------|-----------|----------|-----------| | Platform Events | Bi-directional | Custom event bus | 72 hours | | Change Data Capture (CDC) | Salesforce → External | Record change notifications | 3 days | | Outbound Messages | Salesforce → External | Workflow-triggered HTTP POST | Until confirmed | | Streaming API (PushTopics) | Salesforce → External | SOQL-based subscriptions | No replay | ## Instructions ### Step 1: Subscribe to Change Data Capture (CDC) ```typescript import jsforce from 'jsforce'; const conn = new jsforce.Connection({ loginUrl: process.env.SF_LOGIN_URL, }); await conn.login(process.env.SF_USERNAME!, process.env.SF_PASSWORD! + process.env.SF_SECURITY_TOKEN!); // Subscribe to Account changes // CDC channel format: /data/AccountChangeEvent const subscription = conn.streaming.topic('/data/AccountChangeEvent').subscribe((message) => { const header = message.payload.ChangeEventHeader; console.log('Change Type:', heade...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category