Loading

Salesforce Platform: Suspend and Resume Platform Event Subscriptions

Data pubblicazione: Oct 8, 2026
Descrizione

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.

Risoluzione

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.

Why You Suspend and Resume a Platform Event Trigger

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."

Suspend and Resume a Subscription in the User Interface

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.

Workaround: Delete and Recreate the Subscription Programmatically

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.

Numero articolo Knowledge

002186624

 
Caricamento
Salesforce Help | Article