Filter Your Stream of Platform Events with Custom Channels

Receive only the event messages that match a predefined filter on a custom channel. Create a channel, and configure it with a filter expression. Subscribers to the channel, including Pub/Sub API clients, Streaming API (CometD) clients, and event relays, receive a filtered stream of events. With fewer events delivered to subscribers, event processing is optimized. Also, subscribers make more efficient use of the event delivery allocation.
  • This feature is supported for high-volume custom platform events that you define. It isn’t supported for legacy standard-volume custom platform events or standard platform events, such as real-time event monitoring events.
  • This feature is supported in Pub/Sub API and Streaming API (CometD) subscribers but not in other types of subscribers, such as Apex triggers, flows, and processes.
  • If you use Government Cloud and your org was created before January 14, 2022, contact Salesforce to enable this feature. Government Cloud orgs created on or after January 14, 2022 have this feature enabled. This feature is available in all other clouds.

Note