Create Platform Event
sf_create_platform_eventCreates a Platform Event (__e) for event-driven architecture, enabling real-time publish/subscribe communication. Set publish behavior and custom fields to define the event payload.
Instructions
Creates a Platform Event object (ending in __e) for event-driven architecture. Platform Events enable real-time publish/subscribe communication between systems. Publishers fire events and subscribers (Flows, Apex triggers, external systems) react to them. PublishAfterCommit waits for DML to commit; PublishImmediately fires right away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Singular label | |
| fields | No | Custom fields on the platform event | |
| fullName | Yes | Platform event API name, e.g. 'Order_Created__e' | |
| description | No | Description of the event | |
| pluralLabel | Yes | Plural label | |
| publishBehavior | No | PublishAfterCommit: published when DML transaction commits. PublishImmediately: published regardless of transaction. | PublishAfterCommit |