Configuring Platform Event Batch Size
PlatformEventSubscriberConfig is a configuration setting object accessible only through the metadata or the Tooling API.
Use one of the following editors to query and insert or update the configurations:
SOQL query editor from the Developer Console
REST Explorer from Workbench
To configure platform event batch size:
1. Run the following query to obtain the external ID:
SELECT ExternalId, Name,Type FROM EventBusSubscriber Where Name = 'WSCH_ScheduleEventTrigger'
2. Use the REST URL. URL: /services/data/v51.0/tooling/sobjects/PlatformEventSubscriberConfig/ to post the data
Body
{
"BatchSize": "50",
"DeveloperName": "SchedulingItemEventTriggerConfig", <--this can be any unique name
"MasterLabel": "SchedulingItemEventTriggerConfig", <--same as above
"PlatformEventConsumerId": "01q2I000001Dd5s" <--This is the platformEventTrigger(externalId) from above query
}
The record is inserted if it does not exist, else a duplicate response is received.
Was this helpful?