Questions tagged [change-data-capture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
19 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 ...
0
votes
1answer
42 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
33 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
69 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
0answers
17 views

Get 'View all' permission to custom object

Lets'say whe have custom object having master-detail relationship with Contact. And we want use Change Data Capture. Question is - how to get 'View all' permission to this custom object? It's ...
0
votes
1answer
20 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
88 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
20 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(...
0
votes
0answers
19 views

Change Data Capture - problem with records updating

I can receive messages when I create new record. By in case when I try to update record - I can not receive nothing. What do I do wrong? connectedCallback() { if(!Object.keys(this.subscription)....
2
votes
0answers
85 views

Surprising compilation 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 ...
1
vote
0answers
34 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
89 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
241 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
32 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
117 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
285 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 ...
6
votes
1answer
198 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
186 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 ...
0
votes
0answers
159 views

Getting change data capture events in Python

I am trying to figure out how to subscribe to streaming channel and get cdc events in Python, after success in creating new PushTopic and StreamingChannel. I saw some code examples in Java and NodeJS,...
15
votes
2answers
334 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
134 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
468 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
55 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
136 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
37 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.
12
votes
1answer
973 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
198 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
29 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
96 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 ...
0
votes
1answer
384 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
682 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
819 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
330 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 ...
3
votes
1answer
266 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 ...
3
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
3k 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 ...