1

Let's say i have custom object LOT__c in my org and LWC from https://developer.salesforce.com/docs/component-library/bundle/lightning-emp-api/documentation

then I set channel name to /data/LOT__c__ChangeEvent and subscribe channel. But when I create new lot nothing's happened with channel. (LOT is included into Change Data Capture What do I do wrong?

4

You will not have __c for change events subscription - Refer to this document

Custom Object

/data/<Custom_Object_Name>__ChangeEvent

For example, the channel to subscribe to change events for Employee__c custom object records is:

/data/Employee__ChangeEvent

In your case it should be /data/LOT__ChangeEvent

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.