Trigger a Flow to Run When a Platform Event Message Is Received
Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.
Who: To activate a platform event–triggered flow, you need the View All Data permission.
How: When you create the flow, select Platform Event–Triggered Flow.
From the Start element, choose the platform event whose event messages trigger the flow to run.
In a platform event–triggered flow, the $Record global variable contains the field values from the platform event message. You can use those values throughout the flow.