Questions tagged [change-data-capture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
476 views

How can you delete a PlatformEventChannelMember record via the REST api?

I am trying to configure Change Data Capture for the ChangeEvents channel via the REST API as you can in Setup Change Data Capture when using the Salesforce UI. I am able to add records of ...
waffletower's user avatar
3 votes
1 answer
332 views

CDC Not working after 24 hours

Was doing some testing with Change Data Capture and Heroku and now I am not receiving any events. This is against a brand new Developer Edition (DE) org. However, if I switch my connection to another ...
Bryan Anderson's user avatar
4 votes
2 answers
1k views

Subscribing to a Channel with an Invalid ReplayId?

I am currently in process of building a CDC application in my environment that captures changes and then places them on an Azure service bus for later processing. The way I have the application ...
Tanner.R's user avatar
  • 161
0 votes
1 answer
148 views

Capture fields values without creating new dummy fields on Case Object

I have to capture fields values belong 7 different fields when a flag field is true on Case Object and capture them in object B. Basically I am trying to avoid creating 7 new fields on Case Object to ...
sfdcuser's user avatar
4 votes
1 answer
891 views

Salesforce Change Data Capture with Cross-ORG external object

I am facing an issue with Change Data Capture I enabled the Change Data Capture (CDC) feature on Opportunity in the source ORG. I am able to write a trigger on the OpportunityChangeEvent in source ...
speruri's user avatar
  • 93
1 vote
1 answer
842 views

Event change: unable to get changedfields

I am tring to get the list of fields that was changed in my record, based on this Documentation, I thought I should be able to retrieve the fields by: trigger OpportunityChangeTrigger on ...
manza's user avatar
  • 1,945
1 vote
1 answer
489 views

The External Change Data Capture doesn't work with an error!

I'm using OData v4.0 and the External Object is set in Salesforce, which is connected with Heroku Connect. However, the Change Data Capture feature does not work, and the following error occurs. &...
Chris Jang's user avatar
1 vote
0 answers
229 views

Change Data Capture Gap Events with multiple record ids

Looking through CDC Gap Events, it appears that new values for the objects aren't included, but we can have multiple records changed in a single gap event. Is it safe to assume that the values for ...
Robin Singh's user avatar
1 vote
1 answer
302 views

Use Change Data Capture in the other direction (Heroku -> SF)

I have a Salesforce ISV app that shares some data with its Heroku-based backend. To notify the backend about data changes in Salesforce we use Change Data Capture. For synching back changes from ...
Robert Sösemann's user avatar
3 votes
1 answer
251 views

Can we replace legacy Streaming API code with its latest versions?

Barcode reader in the our Airport vip lounges is triggering a REST Service in our Salesforce service org and after that the screen of the vip lounges should get refreshed with the information of the ...
Chetan's user avatar
  • 303
5 votes
1 answer
548 views

Streaming API Message Reliability and Acknowledgement

How does the Salesforce streaming API ensure message reliability? I understand you can replay events from any replay id within the retention period, but this does not guarantee message delivery. ...
ogoodwin's user avatar
0 votes
1 answer
225 views

How to get the notifications in my External system(AdobeConnect) using salesforce change events or platform events?

I have a custom object called AdobeMeeting__c and platform event Meeting__e. If I did the changes in AdobeMeeting__c object,I need to push the notification to my external system(adobe connect). For ...
chandu's user avatar
  • 1
5 votes
1 answer
798 views

Overflow Events in Change Data Capture

The Salesforce team in their Developer Guide has explained the reasons for the generation of GAP_OVERFLOW events. The Developer Guide also mentions that these events won't carry any actual record Ids ...
Raman's user avatar
  • 103
1 vote
1 answer
49 views

What type of object is passed to lightning/empApi callback?

The main question is - why do I have to do this in callback (I mean JSON transormations) subscribe(this.channel, -1, response=> { /// main hook let payload = JSON.parse(...
pincet's user avatar
  • 839
4 votes
0 answers
491 views

Baffling compile error: "A non foreign key field cannot be referenced in a path expression: ChangeEventHeader"

Why is it that this will not compile: trigger AccountChangeTrigger on AccountChangeEvent (after insert) { String dmlType = Trigger.new[0].ChangeEventHeader.changetype; ... A non foreign key ...
Brent Bowers's user avatar
  • 3,074
1 vote
0 answers
245 views

Change data capture async triggers don't get all the events when doing multiple record operations on the same execution thread

After doing more than one operation in a single transaction, the change data capture event trigger does not get the two expected events. For example, we will create and update a Lead in the same ...
FuuRe's user avatar
  • 479
1 vote
1 answer
897 views

Unable to subscribe to CDC events in Sandbox

With the example given in the link: Trailhead - Subscribe to Events, I was able to successfullt connect to my DEV org and listen to the change events for both custom and standard objects. However ...
Sid's user avatar
  • 340
1 vote
1 answer
1k views

LWC emp API track field is not rendering

I am trying with small example of emp API, everything works fine I am able to subscribe and unsubscribe, however, the response of CDC not printing in the UI for some reason. May I am missing a small ...
Ajay 's user avatar
  • 1,529
0 votes
1 answer
171 views

Why Salesforce has changeEvent version of object in org(even though it is not enabled)

I was browsing my org, and found that changeEvent type of object is available, whereas I did not have it enabled for any object. Doesn't it make available if and only if it is enabled(like share ...
Ysr Shk's user avatar
  • 3,104
4 votes
1 answer
613 views

Change Data Capture vs Queueable Apex

With the introduction of Change Data Capture, now there is one more way to execute Asynchronous Apex. What are the advantages of Change Data Capture over Queueable Apex? How Salesforce will enqueue ...
Devendra's user avatar
  • 5,057
2 votes
1 answer
1k views

Change Data Capture - Update Events in bulk

I am writing a trigger in Change Data Capture (CDC) on an update of an event record (EventChangeEvent). I am getting the updated fields in the EventChangeEvent object record. Problem I am facing is ...
Json Bourne's user avatar
10 votes
1 answer
916 views

Include activation of change data capture event in managed package subscriber org

First, some quick background. I'm aware there are several different ways this could be solved. Platform events, Queueables, batch jobs, etc... For now I'm specifically interested in how this would be ...
Daniel Ballinger's user avatar
5 votes
3 answers
764 views

Including External ID in CDC

We are implementing CDC to mirror record changes in Salesforce to our other platforms. When a change occurs to a record the recordIds are passed which contain the Salesforce IDS. However our external ...
Deployment Failure's user avatar
15 votes
1 answer
701 views

Change event triggers contain default value

I've been playing around with change event triggers to get an understanding of them and I noticed that if my objects have fields with default values, those fields are being included in the update ...
Daniel Hoechst's user avatar
7 votes
1 answer
323 views

Add Async Triggers into a Managed Package

Salesforce released the Process Change Event Messages in Apex Triggers in Summer '19, is this feature available in the managed package?
Jair's user avatar
  • 539
7 votes
2 answers
2k views

Trigger.OldMap equivalent in ChangeEvent?

I'm trying to move a function from the AfterInsert trigger on account, to a Change Data Capture event, AccountChangeEvent. The problem is this function uses Trigger.OldMap to track if there were ...
Dana Griff's user avatar
  • 1,564
4 votes
0 answers
240 views

Can a Change Event Trigger include the same record multiple times?

I'm starting to play with Change Event Triggers, building a handler framework and I'm not sure if I need to handle a scenario where the same record would be included in the same Change Event trigger ...
Mike's user avatar
  • 1,179
0 votes
1 answer
736 views

AccountChangeEvent fired multiple times

After the publish of this article: https://developer.salesforce.com/blogs/2019/06/get-buildspiration-with-asynchronous-apex-triggers-in-summer-19.html I'm trying to implement an async apex trigger on ...
Dana Griff's user avatar
  • 1,564
2 votes
0 answers
39 views

Why use Change Event triggers over existing async methods? [duplicate]

When and why should we use Change Event Triggers over @future or queueable methods? Also do they use sync or asynch limits? I cannot find any clear documentation stating this.
Girbot's user avatar
  • 5,405
14 votes
1 answer
3k views

How do I see debug logs for Change Data Capture triggers in Salesforce?

With Summer '19 we can now have asynchronous apex change event triggers. This is covered in the release notes - Process Change Event Messages in Apex Triggers and the blog post Get #Buildspiration ...
Daniel Ballinger's user avatar
1 vote
1 answer
807 views

How to get list of custom CDC object names and push topics in java?

I'm new to the API and I hope this is nothing more missing something in the documentation. I found the Change Data Capture Developer Guide and other documentation giving the endpoints for Platform ...
bgiles's user avatar
  • 121
1 vote
1 answer
87 views

Using CDC to detect changes in table definitions (DDL)

Can I use Capture Data Changes to get notifications on changes in the Salesforce table definitions, such as Add Column? Thanks in advance
Sruli Ganor's user avatar
0 votes
1 answer
548 views

Why would I use Streaming API over Outbound Messages? [closed]

I have been looking into using the Streaming API for an upcoming integration project, and it seems like a modern way of providing near real-time data with durability. In the past I have let my ...
Kyle J V's user avatar
  • 287
1 vote
1 answer
1k views

Getting "before-update" info in Change Data Capture (CDC) events

the CDC feature looks great. However, the Update events only contain the changed fields after the update. Is there a way to also get the original values of the changed fields before the update? This ...
Sruli Ganor's user avatar
2 votes
1 answer
3k views

Cannot subscribe to Capture Data Changes (CDC) channel using EMP Connector

I'm trying to implement CDC using the EMP Connector sample. I run it against the sandbox and try to subscribe to channels such as /data/ChangeEvents or /data/AccountChangeEvent. I always get this ...
Sruli Ganor's user avatar
5 votes
3 answers
2k views

Can the cometd library be used in Salesforce to listen to external buses?

I'll confess up front that my knowledge of event architecture is limited: Can the cometd library that we can use to listen for Streaming API and Platform Events also be used to listen to external (i....
AlwaysThinkin's user avatar
2 votes
2 answers
773 views

Sending External ID Fields in change data capture(CDC) payload

We have an external system(legacy) from where we will data convert and move the data to salesforce. Lets say the object name is 'Relationship'. every time later when data changes in salesforce for ...
RedDevil's user avatar
  • 7,765
4 votes
1 answer
1k views

Durable Message Replay from Change Data Capture

Given the following posts from Salesforce: Message Durability Replay Events Sample: Code Walkthrough StreamingReplayClientExtensions/java/CometDReplayExtension.java The way I'm understanding the ...
Kyle B.'s user avatar
  • 223
5 votes
2 answers
5k views

Change Data Capture

With the new Change Data Capture tool coming out soon, why would someone use this over Platform Events? My understanding is that CDC utilizes Platform Events under the hood anyways.
user5428's user avatar
  • 1,015
7 votes
1 answer
6k views

Change Data Capture vs Platform Events vs Replication API vs Streaming API vs Batch Data Synchronization [closed]

I have a requirement to sync Salesforce data from 2 objects to Datawarehouse and insert/update data from Datawarehouse to Salesforce.We want this data sync to be realtime for this application.Data ...
sfdc's user avatar
  • 13.6k

1
2