0

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 haven't found anywhere on how to specify which objects are selected.

1 Answer 1

0

The specified events are stored under PlatformEventChannelMember. You can configure the Change Data Capture settings in your Scratch Org. Then from your local CLI use:

sf force source retrieve -m PlatformEventChannelMember -u [ALIAS]

For example in the case of tracking Case Change events the metadata file looks as follows:

Printscreen of PlatformEventChannelMember metadata file.

I also found a related question here: Include activation of change data capture event in managed package subscriber org

Good luck!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .