Questions tagged [change-data-capture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
335 views

Does Platform Event / CDC uses same Async queue as Queueable/ Future?

We have a huge concurrent influx of incoming custom api requests. (1000+ under 5 seconds approx) Because of this we were getting ConcurrentPerOrgLongTxn Limit exceeded. We moved from Sync processing ...
user avatar
1 vote
1 answer
45 views

Why CDC has all Sync Limits being an Async process?

According to Salesforce documentation. You can add up to 50 jobs to the queue with System.enqueueJob in a single transaction. In asynchronous transactions (for example, from a batch Apex job), you ...
user avatar
0 votes
1 answer
41 views

Change Event Trigger is not available for FeedItem

I am trying to create a change event trigger for the feed item, it's not available for creation. For other objects it's available, but missing for feed item, FeedComment, and some other standard ...
user avatar
2 votes
1 answer
116 views

Publishing CDC with Apex trigger

I've been following/researching a few resources online to create a apex trigger that gets triggered after actions on Account objects. I'm trying to test the first bit so far where I want to capture ...
user avatar
1 vote
1 answer
66 views

Why creation of Apex Trigger on Change Event for Custom Setting fails if it is available in the picklist?

Change Event for Custom Settings is available in the picklist to create Apex Trigger, but when you try to create an Apex Trigger on that, it fails. Why?
user avatar
  • 13.3k
6 votes
2 answers
773 views

Will Change Data Capture eventually replace PushTopics/Streaming API?

I need to notify an external system component about changes in Salesforce data. I am confused by the fact that there exist two seemingly competing solutions in Salesforce for that. Both look very ...
user avatar
1 vote
1 answer
84 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 ...
user avatar
  • 39
0 votes
1 answer
102 views

Change Data Capture for deleted Events

I created a ticket with Salesforce because outlook attendee event deletion is not firing the trigger or flow. So basically, when these events are deleted from Salesforce there is no way to run any ...
user avatar
0 votes
0 answers
89 views

CDC Filtering User Initiated Events

We have a use case to filter CDC events to skip a specific user initiated events. This helps us to skip the recursion of CDC events which gets generated in SFDC which changes fields in backend and ...
user avatar
  • 111
2 votes
0 answers
68 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 ...
user avatar
0 votes
1 answer
338 views

How do I create Sales Cadence Records Via Apex Test Code?

I created an Apex CDC Trigger on the ActionCadenceTracker object via the ActionCadenceTrackerChangeEvent to update a Lead's status when the sales cadence is completed. I'd like to write Apex test code ...
user avatar
0 votes
0 answers
64 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. ...
user avatar
  • 113
1 vote
1 answer
84 views

Is it possible to retrieve Case ID on case creation with Change Data Capture?

I am using CDC to get Cases on creation by subscribing to data/CaseEventChannel channel. But I see I am not receiving the case ID, is this wrong? Is there a way to have this? I need it for updating ...
user avatar
  • 117
0 votes
1 answer
180 views

Apex Test - User email change on UserChangeEvent

I have a trigger on UserChangeEvent that upon Email change event, performs certain operations with the new email address. Upon email change, Salesforce sends a confirmation email to the user, who then ...
user avatar
  • 3
1 vote
0 answers
184 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 ...
user avatar
  • 1,889
1 vote
0 answers
311 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 ...
user avatar
0 votes
1 answer
106 views

Change data capture and FLS

As per documentation, it is mentioned : Change Data Capture(CDC) respects your org’s field-level security settings. Delivered events contain only the fields that a subscribed user is allowed to view. ...
user avatar
3 votes
1 answer
110 views

Which feature is best/recommended to capture record changes in AppExchange app which Integrates with external system?

As part of integration in AppExchange, we would like to capture Salesforce record changes in external system when some change happens in Salesforce records. There are multiple ways to inform external ...
user avatar
  • 2,232
1 vote
0 answers
38 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 ...
user avatar
0 votes
1 answer
87 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 ...
user avatar
0 votes
1 answer
227 views

Where is the Change Data Capture Metadata?

My admittedly basic understanding of how Salesforce works is that everything is defined in metadata. If I create an app, that's defined in App_Name.app-meta.xml. If I add a page to it, that creates a ...
user avatar
  • 663
0 votes
1 answer
270 views

Change data capture: why would a single change event be associated with multiple record ids?

I'm subscribing to a change data capture event stream via an Apex trigger. It appears there can be multiple record IDs associated with each change event. Does this mean that all the changes on these ...
user avatar
  • 463
1 vote
0 answers
213 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. // ...
user avatar
  • 10.6k
2 votes
1 answer
233 views

Trigger Flow from Change Data Capture Event (CDC)

Can Salesforce Flows listen to Change Data Capture events like Apex Triggers? I couldn't find anything related on the Web and couldn't make it work in my org. In case I can't I would like to ...
user avatar
6 votes
1 answer
268 views

Send Change Data Capture events from Managed Package

I am wrapping my head around the question of how to leverage Change Data Capture events in a customer's Managed Package app. They want to define a handful (= 10-15) of the packaged Custom Objects to ...
user avatar
4 votes
0 answers
696 views

Invalid replayId when Appflow is triggered by ChangeEvent in Salesforce [closed]

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 ...
user avatar
  • 41
0 votes
1 answer
104 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 ...
user avatar
  • 5
2 votes
1 answer
131 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 ...
user avatar
3 votes
1 answer
154 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 ...
user avatar
3 votes
2 answers
630 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 ...
user avatar
  • 141
0 votes
1 answer
77 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 ...
user avatar
3 votes
1 answer
508 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 ...
user avatar
  • 83
1 vote
1 answer
350 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 ...
user avatar
  • 1,889
1 vote
1 answer
265 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. &...
user avatar
1 vote
0 answers
134 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 ...
user avatar
1 vote
1 answer
240 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 ...
user avatar
3 votes
1 answer
191 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 ...
user avatar
  • 183
5 votes
1 answer
356 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. ...
user avatar
0 votes
1 answer
91 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 ...
user avatar
  • 1
5 votes
1 answer
536 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 ...
user avatar
  • 103
1 vote
1 answer
28 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(...
user avatar
  • 687
4 votes
0 answers
462 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 ...
user avatar
1 vote
0 answers
129 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 ...
user avatar
  • 479
1 vote
1 answer
433 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 ...
user avatar
  • 325
1 vote
1 answer
952 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 ...
user avatar
  • 1,393
0 votes
1 answer
58 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 ...
user avatar
  • 2,771
3 votes
1 answer
431 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 ...
user avatar
  • 4,907
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 ...
user avatar
10 votes
1 answer
661 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 ...
user avatar
3 votes
2 answers
500 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 ...
user avatar