Newer Version Available
Publish Event Messages with Flows
Use flows to publish event messages from a Salesforce app
as part of some user interaction, an automated process, Apex, or workflow
action.
To publish event messages, add a Record Create or a Fast Create element to the appropriate flow. Where you'd usually pick an object to create, select the platform event.
For example, here’s how to configure a Record Create element that publishes a Low Ink event
message. This example assumes that the Low Ink platform event is defined in your org and that
the event has these custom fields.
- Printer Model (Text)
- Serial Number (Text)
- Ink Percentage (Number)
- For Create, enter low and select Low_Ink__e.
-
Add these fields.
Field Value Printer Model XZO-5 Serial Number 12345 Ink Percentage 0.2 
- Save and activate the flow.