Posts

Showing posts from August, 2021

LinkedIn

Salesforce Change Data Capture - Asynchronous Triggers and Subscription using MuleSoft & CometD

Image
 In this post, let us see what is Change Data Capture, when to use them and the different subscription approaches. 1. What is Change Data Capture Change Data Capture is similar to Platform Events. This can be used to keep your external system in sync with Salesforce data. It is supported for all custom Objects and some standard Objects.  The supported standard object list can be found here . Once enabled for a particular object, whenever that object record is created, updated, deleted or undeleted, an event will be fired to the event bus. This fired event will be available for 72 hours on the bus and an external application can subscribe to this. How it is different from Platform events? 1. In platform events, we can define our own fields and structure whereas CDC is applied on existing Objects 2. You can publish platform events from Flows, Apex, and process but CDC is fired by default on record changes How to Enable CDC? Go to setup->Integrations->Change Data Capture Here you ca