Questions tagged [change-data-capture]

The tag has no usage guidance.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
4 votes
1 answer
256 views

CDC processes all 9999 requests at once. Is this by design or a bug?

In salesforce documentation batch size of platform event is mentioned as 2000 maximum (documentation). Which it definitely follows (tested). But for CDC its not mentioned. I also tried this in my dev ...
Nagendra Singh's user avatar
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
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
2 votes
0 answers
140 views

Replace trigger on EventRelation

We have a business need where we want to store an Account (business account or person account) last activity date, according to specific criteria from Event and Task the account is in (for example ...
Pierrot's user avatar
  • 73
2 votes
0 answers
271 views

Does Mulesoft automatically handle CDC gap and overflow events?

Does Mulesoft automagically handles Salesforce Change Data Capture (CDC) Gap and Overflow events automagically? It would be nice it that was the case, rather than have to engineer some solution to ...
Kurt Fairfield's user avatar
1 vote
0 answers
164 views

Alternative to Change data capture

Since Change data capture event (CDC) is a paid add-on after 5 objects, what alternatives we have to get notified about change in salesforce object ?
SharpCoder's user avatar
1 vote
1 answer
171 views

Event-based integration with AWS: durability

I am trying to build a sync mechanism between Salesforce and AWS using AWS AppFlow(Event based). But as per salesforce doc, Change Data Capture Events are only retained for 72 hours: https://developer....
ashwini571's user avatar
1 vote
0 answers
474 views

Salesforce Platform Event & CDC data volume understanding

Can someone explain me how many platform events or CDC can be published at the same time. For PE I believe 10000 events at the same time, considering it would have the same limit as object records. ...
SF Learner23's user avatar
1 vote
1 answer
355 views

How to capture changes via api with minimal setup

I am developing an application on top of salesforce and want my application to get notified on changes to certain Salesforce entities. However I want setup to be as easy as possible for my users. I ...
nick's user avatar
  • 39
1 vote
0 answers
444 views

Change Data Capture: suddenly stopped working

This is really bizare but is happening in production and not in the sandbox. I have 2 triggers for two objects, that I have enable in the Change data capture panel. This triggers were already in ...
manza's user avatar
  • 1,945
1 vote
0 answers
847 views

Change data capture event not firing associated trigger in production

I have a custom trigger that fires on an OpportunityChangeEvent: trigger EXAMPLE_CREATE on OpportunityChangeEvent(after insert) { // Get the change event’s product ID for added and updated products ...
benbutler's user avatar
1 vote
0 answers
69 views

Take action when CampaignMemberStatus is Updated or Deleted

I'm trying to run some custom code when I detect that a CampaignMemberStatus record has changed or been deleted and am having no real luck. Cannot create APEX Trigger on CampaignMemberStatus (which ...
Adam Erstelle's user avatar
1 vote
1 answer
603 views

CDC subscription not working in Lightning Web Component

I have enabled the Change Data Capture for my Custom_Object__c and I am trying to subscribe to these events from a Lightning web component using EmpApi of the LWC framework. Here is my code. // ...
Rahul Gawale's user avatar
  • 11.9k
1 vote
0 answers
231 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
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
1 vote
0 answers
250 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
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
0 answers
22 views

Change Data Capture and LWC on Mobile App?

I Have a LWC component setup to use CDC to refresh the apex of a varity of objects this intern affects the DOM (icons change / menu options change etc) this works fine on desktop however on the ...
ravent's user avatar
  • 11
0 votes
0 answers
25 views

CDC channel stops receiving messages and never picks back up

Working on integrating Salesforce changes back to SQL server, so we have a cometD connection in our .NET app for listening to changes to a specific entity in salesforce, then we can parse out the ...
Brian McClain's user avatar
0 votes
1 answer
110 views

Bypass CDC (Change Data Capture) for custom object based on specific condition

I'm looking for a way to bypass the Change Event trigger for some cases, for example, I have a batch that updates records and I want to bypass the Change Event trigger for that object to be triggered ...
user1391482's user avatar
0 votes
0 answers
37 views

What fields comes in the event trigger (outside event.ChangeEventHeader)?

When working with CDC events in Salesforce if I have a trigger like this: trigger OpportunityChangeTrigger on OpportunityChangeEvent (after insert) { for (OpportunityChangeEvent event : Trigger....
manza's user avatar
  • 1,945
0 votes
0 answers
32 views

Capture few Case fields changes and send to third party

We want to track around 20-30 fields changes of case object. These fields changes can include the long text area field, multiselect picklist values, formula fields, and roll summary also. The reason I ...
Sukruti's user avatar
  • 450
0 votes
0 answers
25 views

Listen to Salesforce Record Update Event in AppExchange Product

Appexchange product has a push topic for example : [Select Id,Name From Account] When account update where name is "xyz", I want to capture that event in app exchange product and fire a ...
Nirmallya Ghosh's user avatar
0 votes
0 answers
43 views

Eventual Consistancy in Transaction-Based Replication Approach

I'm following the Transaction-Based Replication Steps that are introduced in this link: https://developer.salesforce.com/docs/atlas.en-us.change_data_capture.meta/change_data_capture/...
Mehdi Kazemiroudi's user avatar
0 votes
0 answers
269 views

Is there an event log that captures record creation / updates?

I am trying to find an event log that captures whether a CRUD (create, read, update, delete) event has happened on any record. I was thinking there would be one under ApexExecution event type with a ...
S.B.'s user avatar
  • 2,039
0 votes
1 answer
56 views

Specify Change Data Capture Entities in Scratch Org Definition

Is it possible to enable and configure change Data Capture for specific entities in a scratch org definition file? I know that you can add "ChangeDataCapture" to the list of features, but I ...
aaron's user avatar
  • 855
0 votes
1 answer
157 views

Platform event `Order Status Changed Event` is not firing from Test Class

I have implemented flow to handle platform event on Order Status Changed Event , working fine with the flow, but it is not working with the Test Class, here is my test method @IsTest static void Test1(...
jks's user avatar
  • 158
0 votes
0 answers
378 views

CDC and Formula Fields

We started an initiative and were in process of testing a POC using CDC for the first time in Salesforce. We knew of the 5 object limit when utilizing this feature and we were able to work with this. ...
SBB's user avatar
  • 173
0 votes
1 answer
522 views

Is it possible to Subscribe to Change Events without View All Permission

Scenario: I am currently making an lwc application and that app is subscribed in a ChangeEvent. The app is for user without 'view all' permission to the object. And since the user do not have view all ...
Rex Joseph Egoc's user avatar
0 votes
1 answer
149 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
0 votes
1 answer
226 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
0 votes
1 answer
173 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
-1 votes
1 answer
29 views

Change Data Capture - is it possible to get updates that happened prior to the start of the subscription?

We want to build a service that monitors Salesforce that gets changes to Opportunities as they occur. If we could assume 100% uptime, this strategy would be perfect. But if we have to bring the ...
nstuyvesant's user avatar