Skip to main content

Questions tagged [change-data-capture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
1k 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 ...
0 votes
1 answer
96 views

Understanding Gap Events and Transaction Key Handling

Consider a scenario where a transaction with the key "00000a82-7f3f-1c17-2bd3-7c636bd96311" is initiated. The transaction involves creating a case followed by creating an email message. ...
1 vote
1 answer
61 views

Is manual configuration always required when subscribing to Change Data Capture events via the Pub/Sub API?

I'm creating an application that subscribes to events via the Pub/Sub API. So for example, I'm subscribing to /data/AccountChangeEvent to receive notifications of Account changes. For this to work on ...
0 votes
0 answers
69 views

Can't deploy CDC on PricebookentryChangeEvent

I made a Trigger on PricebookEntryChangeEvent and added Pricebook Entry to the CDC Selected Entity list. I've also added PlatformEventChannelMember with a wildcard in the Package.xml. ...
0 votes
1 answer
164 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 ...
0 votes
0 answers
45 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 ...
0 votes
1 answer
89 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 ...
-1 votes
1 answer
37 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 ...
0 votes
1 answer
135 views

Change Data Capture (Async Apex Trigger) vs @future method in Trigger

What is the difference between using the Async Apex trigger and @future methods? Why use Async Apex Trigger when we have @future method to separate the thread from the main Trigger? The only ...
0 votes
1 answer
353 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 ...
0 votes
1 answer
288 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(...
1 vote
1 answer
308 views

How may I enrich CDC events with a lookup?

I would like to retrieve things like CreatedBy.Name on Salesforce Change Data Capture. How may I accomplish it? I have looked into Enrich Change Events with Extra Fields, which mentions that Lookups ...
1 vote
1 answer
243 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....
0 votes
0 answers
32 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 ...
1 vote
1 answer
620 views

Is Salesforce planning to retire or stop supporting Outbound Messages?

We are evaluating whether or not to use Outbound Messages in an integration project, calling them from Flow. It's my understanding Salesforce plans on retiring Workflow Rules, but it is not clear how ...
5 votes
3 answers
830 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
1 answer
544 views

Select some fields to sync via Change Data Capture

I am using Change Data Capture (CDC) to sync objects but I would like to only sync some fields not all the fields, is this possible? Let's say I would like only to sync the field called Name in the ...
0 votes
1 answer
111 views

Does Change Data Capture have a mechanism to output all existing records when it is turned on?

When you have an org that already contains records, is there a way to make Change Data Capture (CDC) emit "create" changes for all the existing records when it is first turned on?
1 vote
3 answers
3k views

How to implement Change Data Capture in LWC component

Developing a component that displays a visualization based on the value of a field, Opportunity.Magic_Number__c. That field is updated periodically via Salesforce REST API calls outside of our ...
0 votes
1 answer
310 views

Enable Change Data Capture via Apex

As part of a second-generation managed package, need to enable Change Data Capture (CDC) for the Opportunity object. Can this be done via Apex in a PostInstall for the managed package? Been Googling ...
0 votes
0 answers
500 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 ...
1 vote
0 answers
267 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 ?
1 vote
0 answers
637 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. ...
0 votes
1 answer
170 views

how can i disable the Encrypt change data capture flag

how can i disable the flag in Encryption Policy - " Encrypt change data capture events and platform events "?
1 vote
1 answer
611 views

Is it possible to subscribe to events in a LWC flow screen component?

I have an LWC FSC (flow screen component). I am trying to subscribe to a CDC event, but the subscription never seems to execute. The same LWC when displayed on a lightning record page does subscribe ...
1 vote
2 answers
2k 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 ...
4 votes
1 answer
293 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 ...
2 votes
0 answers
209 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 ...
1 vote
1 answer
698 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. // ...
7 votes
1 answer
429 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 ...
2 votes
2 answers
2k 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 ...
1 vote
0 answers
981 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 ...
2 votes
1 answer
274 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 ...
0 votes
1 answer
253 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 ...
9 votes
2 answers
4k 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 ...
1 vote
1 answer
391 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?
2 votes
1 answer
522 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 ...
1 vote
1 answer
418 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 ...
0 votes
1 answer
835 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 ...
2 votes
0 answers
309 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 ...
0 votes
0 answers
478 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. ...
1 vote
0 answers
576 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 ...
1 vote
1 answer
223 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 ...
0 votes
1 answer
378 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. ...
3 votes
1 answer
293 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 ...
1 vote
0 answers
81 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 ...
0 votes
1 answer
688 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 ...
1 vote
1 answer
1k 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 ...
1 vote
1 answer
1k 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 ...
2 votes
1 answer
684 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 ...