+ Start a Discussion
Ken Koellner 7Ken Koellner 7 

Limit Batch Size on Change Data Capture Change Event Apex Trigger

I'm experimenting with Change Event Apex Triggers to subscribe to Change Data Capture.  My simple tests just to inspect the payloads work fine.  The documentation says the batch size can be up to 2000 records.  The use case I'm considering involves a fair amount of work doing callouts and would likely fail with a batch that large.  What I'd like to do is limit the batch size.  I know there is a way to do that with triggers on Platform Events.  But, I do not know if that can be done on Change Event Triggers.  Does anyone know if batch size can be limited specifically on Change Event Triggers?  If so, how to do it?

I know everyone wants to be as helpful as possible but please read the question carefully.  It won't help to answer a different question.
Ken Koellner 7Ken Koellner 7
I have found this article on Platform Event Triggers -- https://help.salesforce.com/articleView?id=release-notes.rn_messaging_trigger_config.htm&release=230&type=5  But I do not know if that applies to Change Event Triggers.