Questions tagged [change-data-capture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
14 views

Invalid replayId when Appflow is triggered by ChangeEvent in Salesforce

For an integration with Salesforce, I am using AWS Appflow and subsequently AWS Eventbridge to process certain change events in Salesforce. I have set up an AppFlow integration in AWS (as explained ...
0
votes
0answers
30 views

Is Salesforce Enterprise Messaging Platform (EMP) based on Kafka? [closed]

I was going throw this article and have some questions related to internal implementation of Salesforce Streaming APIs. How Kafka, Bayeux, and CometD work together in Streaming APIs? Do we have Bayeux ...
0
votes
1answer
20 views

Asynchronous trigger (Change Data Capture)

I have a asynchronous trigger on Sobject(Billing_Product__c) which works on CDC framework. Change event can be caused by insert, update or delete. How do I check inside trigger if the change event is ...
2
votes
0answers
23 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 ...
3
votes
1answer
36 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 ...
3
votes
2answers
94 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 ...
0
votes
1answer
28 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 ...
3
votes
1answer
89 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 ...
1
vote
1answer
80 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 ...
0
votes
1answer
95 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. &...
1
vote
0answers
60 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 ...
1
vote
1answer
141 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 ...
3
votes
1answer
54 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 ...
5
votes
1answer
150 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. ...
0
votes
1answer
29 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 ...
4
votes
1answer
259 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 ...
1
vote
1answer
24 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(...
3
votes
0answers
194 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 ...
1
vote
0answers
63 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 ...
1
vote
1answer
166 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 ...
1
vote
1answer
545 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 ...
0
votes
1answer
39 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 ...
3
votes
1answer
229 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 ...
1
vote
1answer
563 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 ...
8
votes
1answer
362 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 ...
2
votes
2answers
272 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 ...
15
votes
1answer
413 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 ...
7
votes
1answer
170 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?
6
votes
2answers
827 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 ...
4
votes
0answers
82 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 ...
0
votes
1answer
271 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 ...
2
votes
0answers
38 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.
13
votes
1answer
1k 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 ...
1
vote
1answer
299 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 ...
1
vote
1answer
41 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
0
votes
1answer
169 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 ...
1
vote
1answer
479 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 ...
0
votes
1answer
1k 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 ...
4
votes
3answers
1k 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....
1
vote
2answers
413 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 ...
4
votes
1answer
439 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 ...
4
votes
2answers
2k 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.
7
votes
1answer
4k 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 ...