Skip to main content

Questions tagged [change-data-capture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
95 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. ...
Cuban coffee's user avatar
  • 1,596
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 ...
DomH's user avatar
  • 13
0 votes
0 answers
68 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. ...
Roy Guns's user avatar
0 votes
1 answer
163 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
  • 57
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 ...
Brian McClain's user avatar
-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 ...
nstuyvesant's user avatar
0 votes
1 answer
132 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
351 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
1 vote
1 answer
306 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
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 ...
Nirmallya Ghosh's user avatar
1 vote
1 answer
617 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
540 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,596
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?
Keith C's user avatar
  • 136k
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 ...
nstuyvesant's user avatar
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 ...
nstuyvesant's user avatar
0 votes
0 answers
498 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,111
1 vote
0 answers
266 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
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 ...
aaron's user avatar
  • 854
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....
ashwini571's user avatar
0 votes
1 answer
286 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
635 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
169 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
608 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,790
4 votes
1 answer
292 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
208 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
273 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
252 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
520 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
388 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
  • 17.3k
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 ...
Robert Sösemann's user avatar
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 ...
nick's user avatar
  • 39
0 votes
1 answer
834 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
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 ...
Kurt Fairfield's user avatar
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 ...
Luke Freeland's user avatar
0 votes
0 answers
477 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
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 ...
hosseio's user avatar
  • 117
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 ...
Vikash's user avatar
  • 45
1 vote
0 answers
574 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,953
1 vote
0 answers
979 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
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. ...
sfdc_Qrius's user avatar
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 ...
Ashish's user avatar
  • 2,372
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 ...
Adam Erstelle's user avatar
0 votes
1 answer
686 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
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 ...
Chuck's user avatar
  • 977
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 ...
muchavie's user avatar
  • 492
1 vote
1 answer
696 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
  • 12.2k
2 votes
1 answer
835 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
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 ...
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