Keep Your External Data Current with Change Data Capture
Use Change Data Capture to update data in an external system instead of doing periodic exports and imports of data or repeated API calls. Capturing changes with Change Data Capture event notifications ensures that your external data can be updated in real time and stays fresh.
-
When Do You Use Change Data Capture?
You can think of Change Data Capture as part of the real-time data replication process for the cloud.
-
Change events are available for all custom objects defined in your Salesforce org and a subset of standard objects.
-
Select Objects for Change Notifications in the User Interface
To receive notifications on the default standard channel for record changes, select the custom objects and supported standard objects that you’re interested in on the Change Data Capture page.
-
Select Objects for Change Notifications with Metadata API and Tooling API
Use PlatformEventChannelMember in Metadata API or Tooling API to create or retrieve object event selections for the default standard channel or a custom channel. The default standard channel, ChangeEvents, corresponds to the selections that you configure in Setup in the Change Data Capture page. For a custom channel, the selections are set when you create the channel member. The
SelectedEntityfield in PlatformEventChannelMember represents a selected event.