How do I view platform event records in Salesforce?
View Event Subscribers From Setup, enter Platform Events in the Quick Find box, then select Platform Events. Click your event’s name. On the event’s definition page, the Subscriptions related list shows all the active triggers, processes, and platform event–triggered flows that are subscribed to the platform event.
How do you write a trigger on a platform event?
The after insert trigger event corresponds to the time after a platform event is published. After an event message is published, the after insert trigger is fired. To create a platform event trigger, use the Developer Console. Click the Setup icon, select Developer Console, and click File | New | Apex Trigger.
How is platformeventusagemetric data broken down by event?
PlatformEventUsageMetric contains actual event usage data broken down by type of event for platform events and change data capture events. PlatformEventUsageMetric usage data is available for the last 24 hours, ending at the last hour, and for historical daily usage for the last 45 days.
How long are event messages stored in cometd?
High-volume platform event messages are stored for 72 hours (3 days). Standard-volume platform event messages are stored for 24 hours (1 day). You can retrieve past event messages when using CometD clients to subscribe to a channel.
Which is an instance of a platform event?
An event message is an instance of a platform event, similar to how a record is an instance of a custom or standard object. Unlike custom or standard objects, you can’t update or delete event records. You also can’t view event records in the Salesforce user interface, and platform events don’t have page layouts.
Where are event messages stored after an event allocation?
For more information, see Streaming API Error Codes in the Streaming API Developer Guide. Event messages that are generated after exceeding the allocation are stored in the event bus. You can retrieve stored event messages as long as they are within the retention window of 72 hours.