Platform Events:
Event Subscriptions:
Scenario:
Users may find the need to modify Platform Event Triggers, using PlatformEventTriggerConfig. Per documentation:
"If a trigger is running and subscribed to a platform event, new configuration settings take effect after you suspend and resume the trigger. You can suspend and resume a trigger from the platform event detail page by clicking Manage next to the Apex trigger in the Subscriptions related list. For more information, see View and Manage an Event’s Subscribers on the Platform Event’s Detail Page."
The only way to directly suspend or resume a Platform Event Subscription is via the User Interface. There is no current functionality to suspend and resume subscriptions programmatically.
Manage Platform Event Subscriptions through the User Interface on the Subscriptions related list for a platform event.
It is possible to delete and recreate the trigger by deactivating Apex programmatically, which will delete the Platform Event Subscription and create a new subscription after the affected automation is set back to active, as a workaround.
View and Manage an Event’s Subscribers on the Platform Event’s Detail Page
Configure the User and Batch Size for Your Platform Event Trigger with PlatformEventSubscriberConfig
002186624

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.