Questions tagged [change-data-capture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 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
27 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
-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
0 votes
1 answer
56 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 ...
Daniel Deepak'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
39 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
1 vote
1 answer
124 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 ...
Jeferson Chaves's user avatar
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
1 answer
299 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 ...
Swisher Sweet's user avatar
0 votes
1 answer
285 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 ...
Cuban coffee's user avatar
  • 1,532
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
1 answer
92 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?
Keith C's user avatar
  • 135k
0 votes
1 answer
216 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 ...
nstuyvesant's user avatar
1 vote
3 answers
2k 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 ...
nstuyvesant's user avatar
0 votes
0 answers
272 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
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
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
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
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
1 vote
0 answers
477 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
0 votes
1 answer
141 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 "?
Andrea Vitangeli's user avatar
1 vote
1 answer
353 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 ...
Nick C's user avatar
  • 6,426
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
2 votes
0 answers
141 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
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 ...
Nagendra Singh's user avatar
2 votes
1 answer
229 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 ...
Nagendra Singh's user avatar
0 votes
1 answer
181 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 ...
Satishakumar Awati's user avatar
2 votes
1 answer
408 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 ...
pragmatic learner's user avatar
1 vote
1 answer
314 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?
Patlatus's user avatar
  • 16k
9 votes
2 answers
3k 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 ...
Robert Sösemann'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
0 votes
1 answer
655 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 ...
Tapas Mukherjee's user avatar
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
2 answers
1k 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 ...
Luke Freeland's user avatar
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
1 vote
1 answer
191 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 ...
hosseio's user avatar
  • 117
0 votes
1 answer
876 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 ...
Vikash's user avatar
  • 3
1 vote
0 answers
445 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
849 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
0 votes
1 answer
323 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. ...
sfdc_Qrius's user avatar
3 votes
1 answer
260 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 ...
Ashish's user avatar
  • 2,362
1 vote
0 answers
70 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
0 votes
1 answer
525 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
950 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 ...
Chuck's user avatar
  • 877
1 vote
1 answer
906 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 ...
muchavie's user avatar
  • 483
1 vote
1 answer
606 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
2 votes
1 answer
621 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 ...
Robert Sösemann's user avatar
7 votes
1 answer
393 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 ...
Robert Sösemann's user avatar
5 votes
0 answers
1k 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 ...
n41r0j's user avatar
  • 51