Platform Events are Salesforce's event-driven messaging architecture for real-time integrations. They enable apps to communicate inside and outside Salesforce by sending and receiving event messages (notifications), which makes them ideal for asynchronous messaging, event-driven integrations, and notifications. For example, a Platform Event can notify an external system when a case is escalated or send order updates to a fulfillment system.
Event Subscriptions are listeners that process Platform Events via triggers, flows, or external systems. During system maintenance or troubleshooting integration issues, you may need to temporarily pause event processing without deleting the subscription configuration. Pausing keeps the setup intact while you address the issue.
This article explains how to suspend and resume a Platform Event subscription in Salesforce, and whether you can do it programmatically. Users who modify a Platform Event Trigger with PlatformEventTriggerConfig must suspend and resume the trigger for new settings to take effect.
Per the Salesforce documentation: "If a trigger is running and subscribed to a platform event, new configuration settings take effect after you suspend and resume the trigger."
The only way to directly suspend or resume a Platform Event subscription is through the user interface. There is currently no functionality to suspend and resume subscriptions programmatically. To manage the subscription, open the platform event detail page and click Manage next to the Apex trigger in the Subscriptions related list.
As a workaround, you can delete and recreate the trigger by deactivating Apex programmatically. This deletes the Platform Event subscription, and Salesforce creates a new subscription after the affected automation is set back to active.
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.